[Updated] D8657: procutil: make recent fix for zombies compatible with py2

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Thu Jun 25 15:43:53 UTC 2020


Closed by commit rHG95c672c07116: procutil: make recent fix for zombies compatible with py2 (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8657?vs=21701&id=21713

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8657/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8657

AFFECTED FILES
  mercurial/utils/procutil.py

CHANGE DETAILS

diff --git a/mercurial/utils/procutil.py b/mercurial/utils/procutil.py
--- a/mercurial/utils/procutil.py
+++ b/mercurial/utils/procutil.py
@@ -615,7 +615,9 @@
                     def _do_wait():
                         os.waitpid(pid, 0)
 
-                    threading.Thread(target=_do_wait, daemon=True).start()
+                    t = threading.Thread(target=_do_wait)
+                    t.daemon = True
+                    t.start()
                     return
                 # Parent process
                 (_pid, status) = os.waitpid(pid, 0)



To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200625/7eec5617/attachment-0002.html>


More information about the Mercurial-patches mailing list