Page MenuHomePhabricator

Only SIGINT the daemon itself, not its entire process group
ClosedPublic

Authored by epriestley on Feb 25 2015, 10:13 PM.
Tags
None
Referenced Files
F13103107: D11889.diff
Sat, Apr 27, 8:50 AM
Unknown Object (File)
Thu, Apr 25, 10:23 PM
Unknown Object (File)
Thu, Apr 25, 12:54 AM
Unknown Object (File)
Thu, Apr 11, 6:13 PM
Unknown Object (File)
Thu, Apr 11, 8:39 AM
Unknown Object (File)
Sat, Mar 30, 7:32 PM
Unknown Object (File)
Mar 13 2024, 11:07 PM
Unknown Object (File)
Mar 10 2024, 5:09 AM
Subscribers

Details

Summary

Signaling the process group is correct for SIGTERM and SIGKILL (nongraceful exits) but not for SIGINT (graceful exit). Subprocesses of the daemon may exit abruptly on SIGINT, which is not consistent with the requested behavior ("exit gracefully").

Test Plan

Ran bin/phd start, bin/phd stop.

Diff Detail

Repository
rPHU libphutil
Branch
graceful
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4651
Build 4665: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

epriestley retitled this revision from to Only SIGINT the daemon itself, not its entire process group.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added reviewers: hach-que, btrahan.
hach-que edited edge metadata.

Tested with P1728 and saw the expected behaviour.

This revision is now accepted and ready to land.Feb 25 2015, 10:32 PM
This revision was automatically updated to reflect the committed changes.