patch-1.3.25 linux/arch/i386/kernel/ptrace.c
Next file: linux/drivers/block/sonycd535.c
Previous file: linux/arch/i386/kernel/process.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Thu Sep 7 17:54:27 1995
- Orig file:
v1.3.24/linux/arch/i386/kernel/ptrace.c
- Orig date:
Thu Sep 7 17:17:16 1995
diff -u --recursive --new-file v1.3.24/linux/arch/i386/kernel/ptrace.c linux/arch/i386/kernel/ptrace.c
@@ -480,6 +480,8 @@
case PTRACE_KILL: {
long tmp;
+ if (child->state == TASK_ZOMBIE) /* already dead */
+ return 0;
wake_up_process(child);
child->exit_code = SIGKILL;
/* make sure the single step bit is not set. */
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