[
https://issues.apache.org/jira/browse/MESOS-2462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14395119#comment-14395119
]
Jie Yu commented on MESOS-2462:
-------------------------------
commit 740dcb3d55944bc1410818d48efc49f0091b037d
Author: Jie Yu <[email protected]>
Date: Thu Apr 2 18:38:00 2015 -0700
Terminated the perf subprocess once the parent exits.
Review: https://reviews.apache.org/r/32805
commit d3bea4433fb06011f673335ec81fe6af2c7592b2
Author: Jie Yu <[email protected]>
Date: Fri Apr 3 14:01:37 2015 -0700
Added os::signals::install to install signal handlers.
Review: https://reviews.apache.org/r/32833
> 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
> Fix For: 0.23.0
>
>
> 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)