Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
0.21.1
-
Twitter Mesos Q1 Sprint 6
-
3
Description
Currently, children forked by the slave, including those through Subprocess, will continue running if the slave exits. For some processes, including helper processes like the fetcher, du, or perf, we'd like them to be terminated when the slave exits.
Add support to Subprocess to optionally set a DEATHSIG for the child, e.g., setting SIGTERM would mean the child would get SIGTERM when the slave terminates.
This can be done (after forking) with PR_SET_DEATHSIG. See "man prctl". It is preserved through an exec call.
Attachments
Issue Links
- is blocked by
-
MESOS-2590 Let the slave control the duration of the perf sampler instead of relying on a sleep command.
- Resolved
- is related to
-
MESOS-2668 Slave fails to recover when there are still processes left in its cgroup
- Resolved