Patchwork D1737: commandserver: unblock SIGCHLD

login
register
mail settings
Submitter phabricator
Date Dec. 21, 2017, 2:54 p.m.
Message ID <72f7282a404fca7239c601d59e69d850@localhost.localdomain>
Download mbox | patch
Permalink /patch/26377/
State Not Applicable
Headers show

Comments

phabricator - Dec. 21, 2017, 2:54 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG3a119a423953: commandserver: unblock SIGCHLD (authored by quark, committed by ).

REPOSITORY
  rHG Mercurial

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

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