lkml.org 
[lkml]   [2018]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] prctl: add PR_{GET,SET}_KILL_DESCENDANTS_ON_EXIT
On 11/27, Jürg Billeter wrote:
>
> @@ -704,6 +713,9 @@ static void exit_notify(struct task_struct *tsk, int group_dead)
> struct task_struct *p, *n;
> LIST_HEAD(dead);
>
> + if (group_dead && tsk->signal->kill_descendants_on_exit)
> + walk_process_tree(tsk, kill_descendant_visitor, NULL);

Well, this is not exactly right, at least this is suboptimal in that
other sub-threads can too call walk_process_tree(kill_descendant_visitor)
later for no reason.


\
 
 \ /
  Last update: 2018-11-28 15:43    [W:0.131 / U:4.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site