diff options
author | 2024-02-02 14:12:26 +0100 | |
---|---|---|
committer | 2024-02-02 14:57:53 +0100 | |
commit | 43f0df54c96fa5abcab9df8649c1e52119bf0238 (patch) | |
tree | 3233889920853f7ea8355d41d33f084dad59f799 /scripts/generate_rust_analyzer.py | |
parent | pidfd: implement PIDFD_THREAD flag for pidfd_open() (diff) | |
download | linux-rng-43f0df54c96fa5abcab9df8649c1e52119bf0238.tar.xz linux-rng-43f0df54c96fa5abcab9df8649c1e52119bf0238.zip |
pidfd_poll: report POLLHUP when pid_task() == NULL
Add another wake_up_all(wait_pidfd) into __change_pid() and change
pidfd_poll() to include EPOLLHUP if task == NULL.
This allows to wait until the target process/thread is reaped.
TODO: change do_notify_pidfd() to use the keyed wakeups.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Link: https://lore.kernel.org/r/20240202131226.GA26018@redhat.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions