1. 06 8月, 2019 1 次提交
  2. 29 7月, 2019 3 次提交
  3. 25 7月, 2019 2 次提交
  4. 18 7月, 2019 2 次提交
  5. 16 7月, 2019 6 次提交
  6. 15 7月, 2019 1 次提交
  7. 12 7月, 2019 1 次提交
  8. 26 6月, 2019 5 次提交
  9. 21 6月, 2019 1 次提交
  10. 20 6月, 2019 6 次提交
  11. 03 6月, 2019 7 次提交
  12. 27 5月, 2019 1 次提交
  13. 23 5月, 2019 2 次提交
  14. 17 5月, 2019 1 次提交
    • M
      lib: Avoid double close when passing FDs with virCommandPassFD() · 5cdd5d38
      Michal Privoznik 提交于
      If an FD is passed into a child using:
      
        virCommandPassFD(cmd, fd, VIR_COMMAND_PASS_FD_CLOSE_PARENT);
      
      then the parent should refrain from touching @fd thereafter. This
      is even documented in virCommandPassFD() comment. The reason is
      that either at virCommandRun()/virCommandRunAsync() or
      virCommandFree() time the @fd will be closed. Closing it earlier,
      e.g. right after virCommandPassFD() call might result in
      undesired results. Another thread might open a file and receive
      the same FD which is then unexpectedly closed by virCommandFree()
      or virCommandRun().
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      5cdd5d38
  15. 15 5月, 2019 1 次提交