This is an archive of the discontinued Mercurial Phabricator instance.

commandserver: unblock SIGCHLD
ClosedPublic

Authored by quark on Dec 20 2017, 5:12 AM.

Details

Summary

This enables the SIGCHLD handler to work properly if some buggy program
started chg server with SIGCHLD blocked.

A test of this probably requires C code, but we don't have such kind of
tests already. Since this is a simple and clear fix, I'm leaving it as
"untested" but I did a manual test and there were no longer zombie workers.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

quark created this revision.Dec 20 2017, 5:12 AM
yuja requested changes to this revision.Dec 20 2017, 8:29 AM
yuja added a subscriber: yuja.
yuja added inline comments.
mercurial/commandserver.py
454

My two cents, add alias util.unblocksignal(), and probably better not ignoring OSError.

This revision now requires changes to proceed.Dec 20 2017, 8:29 AM
quark updated this revision to Diff 4562.Dec 20 2017, 2:38 PM
yuja accepted this revision.Dec 21 2017, 9:34 AM
This revision is now accepted and ready to land.Dec 21 2017, 9:34 AM
This revision was automatically updated to reflect the committed changes.