Revert "pidfd_poll: report POLLHUP when pid_task() == NULL"
This reverts commit 43f0df54c9.
Change-Id: Id5c8932073dd90b073d8c8e1b7f06a9da5b5bc02
Signed-off-by: Terence Tritton <ttritton@google.com>
Bug: 352286227
This commit is contained in:
committed by
Treehugger Robot
parent
76e9569945
commit
d3ec16ca12
@@ -355,11 +355,6 @@ static void __change_pid(struct task_struct *task, enum pid_type type,
|
||||
hlist_del_rcu(&task->pid_links[type]);
|
||||
*pid_ptr = new;
|
||||
|
||||
if (type == PIDTYPE_PID) {
|
||||
WARN_ON_ONCE(pid_has_task(pid, PIDTYPE_PID));
|
||||
wake_up_all(&pid->wait_pidfd);
|
||||
}
|
||||
|
||||
for (tmp = PIDTYPE_MAX; --tmp >= 0; )
|
||||
if (pid_has_task(pid, tmp))
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user