Oleg Nesterov writes:
> 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.
I want to say that there I though there was a good reason something
to do with the exit logic.
However I
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
---
fs/exec.c |3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/fs/exec.c b/fs/e
2 matches
Mail list logo