You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Benjamin Mahler (JIRA)" <ji...@apache.org> on 2015/03/31 20:17:52 UTC
[jira] [Issue Comment Deleted] (MESOS-2462) Add option for
Subprocess to set a death signal for the forked child
[ https://issues.apache.org/jira/browse/MESOS-2462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Mahler updated MESOS-2462:
-----------------------------------
Comment: was deleted
(was: Rather than using #ifdefs, have you considered implementing it for OS X / POSIX systems through other means? E.g. fork an intermediate process that polls for the existence of the parent, or fork an intermediate process that reads a pipe from the parent (EOF == parent death).)
> Add option for Subprocess to set a death signal for the forked child
> --------------------------------------------------------------------
>
> Key: MESOS-2462
> URL: https://issues.apache.org/jira/browse/MESOS-2462
> Project: Mesos
> Issue Type: Improvement
> Components: isolation
> Affects Versions: 0.21.1
> Reporter: Ian Downes
> Assignee: Jie Yu
> Priority: Minor
> Labels: twitter
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)