summaryrefslogtreecommitdiff
path: root/kernel/exit.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2004-01-15 04:47:18 -0800
committerLinus Torvalds <torvalds@evo.osdl.org>2004-01-15 04:47:18 -0800
commit3f2a0d1df938bd3507a665dedbf5a9b1701124eb (patch)
treed147e981f59e9fb4bdd83dcf60f4d6e058e42e6e /kernel/exit.c
parent477552e452dab29884eb4dda34de4f2f586fe1f1 (diff)
[PATCH] fix pdeath_signal SMP locking
Obviously almost noone uses the pdeath_signal feature, since this has gone unnoticed for quite some time. This patch calls the function that does the right locking for the context of this call (inside exit_notify). The names of the signal.c entrypoints are a little confusing.
Diffstat (limited to 'kernel/exit.c')
-rw-r--r--kernel/exit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index 749da057424a..34956331ad0f 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -529,7 +529,8 @@ static inline void reparent_thread(task_t *p, task_t *father, int traced)
p->self_exec_id++;
if (p->pdeath_signal)
- send_group_sig_info(p->pdeath_signal, 0, p);
+ /* We already hold the tasklist_lock here. */
+ group_send_sig_info(p->pdeath_signal, (void *) 0, p);
/* Move the child from its dying parent to the new one. */
if (unlikely(traced)) {