You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@aurora.apache.org by "zane silver (JIRA)" <ji...@apache.org> on 2016/01/06 21:50:39 UTC
[jira] [Comment Edited] (AURORA-1572) SIGTERM is not sent to child
processes
[ https://issues.apache.org/jira/browse/AURORA-1572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15086255#comment-15086255 ]
zane silver edited comment on AURORA-1572 at 1/6/16 8:49 PM:
-------------------------------------------------------------
Basically, I have several bash commands being executed in an aurora process, i.e.
cmd = " <cmd 0> && <cmd 1> && ... <cmd n>"
In the case above, only "cmd 0" seems to receive the sigterm.
There are many workarounds for this...
One solution would be to simply designate a separate aurora process for each cmd. Yet, each command is tightly coupled to each other and it would be nice to have then all run together as a single aurora process. etc...
was (Author: zsilver):
Basically, I have several bash commands being executed in a process, i.e.
cmd = " <cmd 0> && <cmd 1> && ... <cmd n>"
In the case above, only "cmd 0" seems to receive the sigterm.
There's many workarounds for this...
One solution would be to simply designate a separate aurora process for each cmd. Yet, each command is tightly coupled to each other and it would be nice to have then all run together as a single aurora process. etc...
> SIGTERM is not sent to child processes
> --------------------------------------
>
> Key: AURORA-1572
> URL: https://issues.apache.org/jira/browse/AURORA-1572
> Project: Aurora
> Issue Type: Story
> Components: Executor
> Reporter: zane silver
> Assignee: Bill Farner
> Priority: Trivial
>
> In terminate_process, SIGTERM is sent to the parent process only. This seems like a deliberate design choice given that the kill_process does send a SIGKILL to each child process. Is there a reason why SIGTERM is not also sent the to child processes?
> For reference, I'm referring to the functions defined in the thermos helper.py file.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)