patch-1.3.26 linux/kernel/signal.c
Next file: linux/mm/memory.c
Previous file: linux/kernel/sched.c
Back to the patch index
Back to the overall index
-  Lines: 29
 -  Date:
Mon Sep 11 14:40:15 1995
 -  Orig file: 
v1.3.25/linux/kernel/signal.c
 -  Orig date: 
Tue Jul 11 10:03:00 1995
 
diff -u --recursive --new-file v1.3.25/linux/kernel/signal.c linux/kernel/signal.c
@@ -94,7 +94,7 @@
 {
 	struct sigaction *p;
 
-	p = signum - 1 + current->sigaction;
+	p = signum - 1 + current->sig->action;
 	if (p->sa_handler == SIG_IGN) {
 		if (signum == SIGCHLD)
 			return;
@@ -126,8 +126,8 @@
 	memset(&tmp, 0, sizeof(tmp));
 	tmp.sa_handler = handler;
 	tmp.sa_flags = SA_ONESHOT | SA_NOMASK;
-	handler = current->sigaction[signum-1].sa_handler;
-	current->sigaction[signum-1] = tmp;
+	handler = current->sig->action[signum-1].sa_handler;
+	current->sig->action[signum-1] = tmp;
 	check_pending(signum);
 	return (unsigned long) handler;
 }
@@ -141,7 +141,7 @@
 		return -EINVAL;
 	if (signum==SIGKILL || signum==SIGSTOP)
 		return -EINVAL;
-	p = signum - 1 + current->sigaction;
+	p = signum - 1 + current->sig->action;
 	if (action) {
 		int err = verify_area(VERIFY_READ, action, sizeof(*action));
 		if (err)
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