Commit b32c3a0c authored by Ingo Molnar's avatar Ingo Molnar

[PATCH] CLONE_DETACHED fix

This avoids a crash that can be caused by a CLONE_DETACHED thread.
parent 09589177
...@@ -532,7 +532,7 @@ static void exit_notify(void) ...@@ -532,7 +532,7 @@ static void exit_notify(void)
* *
*/ */
if(current->exit_signal != SIGCHLD && if (current->exit_signal != SIGCHLD && current->exit_signal != -1 &&
( current->parent_exec_id != t->self_exec_id || ( current->parent_exec_id != t->self_exec_id ||
current->self_exec_id != current->parent_exec_id) current->self_exec_id != current->parent_exec_id)
&& !capable(CAP_KILL)) && !capable(CAP_KILL))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment