Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fs/exec.c:de_thread(): use change_pid() rather than detach_pid/attach…
…_pid de_thread() can use change_pid() instead of detach + attach. This looks better and this ensures that, say, next_thread() can never see a task with ->pid == NULL. Signed-off-by: Oleg Nesterov <[email protected]> Acked-by: "Eric W. Biederman" <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Pavel Emelyanov <[email protected]> Cc: Sergey Dyasly <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information