Skip to content

Commit 44b912c

Browse files
committed
Merge tag 'for-linus-20190722' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux
Pull pidfd polling fix from Christian Brauner: "A fix for pidfd polling. It ensures that the task's exit state is visible to all waiters" * tag 'for-linus-20190722' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux: pidfd: fix a poll race when setting exit_state
2 parents 21c730d + b191d64 commit 44b912c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/exit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,7 @@ static void exit_notify(struct task_struct *tsk, int group_dead)
720720
if (group_dead)
721721
kill_orphaned_pgrp(tsk->group_leader, NULL);
722722

723+
tsk->exit_state = EXIT_ZOMBIE;
723724
if (unlikely(tsk->ptrace)) {
724725
int sig = thread_group_leader(tsk) &&
725726
thread_group_empty(tsk) &&

0 commit comments

Comments
 (0)