diff options
| author | Oleg Nesterov <[email protected]> | 2006-03-28 16:10:59 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2006-03-28 18:36:40 -0800 |
| commit | 1434261c07bcebd5ef8b8a18f919fdee533b84e0 (patch) | |
| tree | 1d0ba868866354569d2b8854a26ff48dbdbc1a98 /scripts | |
| parent | fef23e7fbb11a0a78cd61935f7056bc2b237995a (diff) | |
[PATCH] simplify exec from init's subthread
I think it is enough to take tasklist_lock for reading while changing
child_reaper:
Reparenting needs write_lock(tasklist_lock)
Only one thread in a thread group can do exec()
sighand->siglock garantees that get_signal_to_deliver()
will not see a stale value of child_reaper.
This means that we can change child_reaper earlier, without calling
zap_other_threads() twice.
"child_reaper = current" is a NOOP when init does exec from main thread, we
don't care.
Signed-off-by: Oleg Nesterov <[email protected]>
Acked-by: "Eric W. Biederman" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions