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
Unknown Object (File)
Tue, Dec 24, 2:55 AM
Unknown Object (File)
Tue, Dec 24, 2:45 AM
Unknown Object (File)
Sat, Dec 7, 9:08 PM
Unknown Object (File)
Fri, Dec 6, 5:32 PM
Unknown Object (File)
Nov 22 2024, 9:53 PM
Unknown Object (File)
Nov 22 2024, 9:53 PM
Unknown Object (File)
Nov 22 2024, 9:52 PM
Unknown Object (File)
Nov 22 2024, 9:37 PM
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.