diff options
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index 7838b4d68774..270a68b7f22f 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -1581,6 +1581,9 @@ static int child_wait_callback(wait_queue_t *wait, unsigned mode, | |||
1581 | if (!eligible_child(wo, p)) | 1581 | if (!eligible_child(wo, p)) |
1582 | return 0; | 1582 | return 0; |
1583 | 1583 | ||
1584 | if ((wo->wo_flags & __WNOTHREAD) && wait->private != p->parent) | ||
1585 | return 0; | ||
1586 | |||
1584 | return default_wake_function(wait, mode, sync, key); | 1587 | return default_wake_function(wait, mode, sync, key); |
1585 | } | 1588 | } |
1586 | 1589 | ||