patch-2.4.10 linux/kernel/sys.c
Next file: linux/kernel/sysctl.c
Previous file: linux/kernel/softirq.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Tue Sep 18 14:10:43 2001
- Orig file:
v2.4.9/linux/kernel/sys.c
- Orig date:
Sun Aug 12 13:28:01 2001
diff -u --recursive --new-file v2.4.9/linux/kernel/sys.c linux/kernel/sys.c
@@ -39,6 +39,7 @@
*/
int C_A_D = 1;
+int cad_pid = 1;
/*
@@ -350,7 +351,7 @@
if (C_A_D)
schedule_task(&cad_tq);
else
- kill_proc(1, SIGINT, 1);
+ kill_proc(cad_pid, SIGINT, 1);
}
@@ -1208,7 +1209,7 @@
switch (option) {
case PR_SET_PDEATHSIG:
sig = arg2;
- if (sig > _NSIG) {
+ if (sig < 0 || sig > _NSIG) {
error = -EINVAL;
break;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)