patch-2.4.5 linux/kernel/exit.c

Next file: linux/kernel/fork.c
Previous file: linux/kernel/context.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.4/linux/kernel/exit.c linux/kernel/exit.c
@@ -62,6 +62,7 @@
 		current->counter += p->counter;
 		if (current->counter >= MAX_COUNTER)
 			current->counter = MAX_COUNTER;
+		p->pid = 0;
 		free_task_struct(p);
 	} else {
 		printk("task releasing itself\n");

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)