patch-1.3.31 linux/kernel/exit.c
Next file: linux/kernel/fork.c
Previous file: linux/init/main.c
Back to the patch index
Back to the overall index
- Lines: 39
- Date:
Mon Oct 2 14:25:11 1995
- Orig file:
v1.3.30/linux/kernel/exit.c
- Orig date:
Mon Sep 18 14:54:10 1995
diff -u --recursive --new-file v1.3.30/linux/kernel/exit.c linux/kernel/exit.c
@@ -6,6 +6,7 @@
#undef DEBUG_PROC_TREE
+#include <linux/config.h>
#include <linux/wait.h>
#include <linux/errno.h>
#include <linux/signal.h>
@@ -72,7 +73,7 @@
void notify_parent(struct task_struct * tsk)
{
- if (tsk->p_pptr == task[1])
+ if (tsk->p_pptr == task[smp_num_cpus]) /* Init */
tsk->exit_signal = SIGCHLD;
send_sig(tsk->exit_signal, tsk->p_pptr, 1);
wake_up_interruptible(&tsk->p_pptr->wait_chldexit);
@@ -349,8 +350,8 @@
for_each_task(p) {
if (p->p_opptr == father)
- if (task[1])
- p->p_opptr = task[1];
+ if (task[smp_num_cpus]) /* init */
+ p->p_opptr = task[smp_num_cpus];
else
p->p_opptr = task[0];
}
@@ -457,8 +458,8 @@
current->p_cptr = p->p_osptr;
p->p_ysptr = NULL;
p->flags &= ~(PF_PTRACED|PF_TRACESYS);
- if (task[1] && task[1] != current)
- p->p_pptr = task[1];
+ if (task[smp_num_cpus] && task[smp_num_cpus] != current) /* init */
+ p->p_pptr = task[smp_num_cpus];
else
p->p_pptr = task[0];
p->p_osptr = p->p_pptr->p_cptr;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this