Patchwork D1737: commandserver: unblock SIGCHLD

login
register
mail settings
Submitter phabricator
Date Dec. 20, 2017, 7:39 p.m.
Message ID <fcc9e7d7488efa810ec45c083ceac9dc@localhost.localdomain>
Download mbox | patch
Permalink /patch/26372/
State Not Applicable
Headers show

Comments

phabricator - Dec. 20, 2017, 7:39 p.m.
quark updated this revision to Diff 4562.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1737?vs=4558&id=4562

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

AFFECTED FILES
  mercurial/commandserver.py

CHANGE DETAILS




To: quark, #hg-reviewers, yuja
Cc: yuja, mercurial-devel

Patch

diff --git a/mercurial/commandserver.py b/mercurial/commandserver.py
--- a/mercurial/commandserver.py
+++ b/mercurial/commandserver.py
@@ -449,6 +449,8 @@ 
     def init(self):
         self._sock = socket.socket(socket.AF_UNIX)
         self._servicehandler.bindsocket(self._sock, self.address)
+        if util.safehasattr(util, 'unblocksignal'):
+            util.unblocksignal(signal.SIGCHLD)
         o = signal.signal(signal.SIGCHLD, self._sigchldhandler)
         self._oldsigchldhandler = o
         self._socketunlinked = False