patch-2.4.19 linux-2.4.19/fs/proc/array.c

Next file: linux-2.4.19/fs/proc/base.c
Previous file: linux-2.4.19/fs/pipe.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/fs/proc/array.c linux-2.4.19/fs/proc/array.c
@@ -226,6 +226,8 @@
 	sigemptyset(ign);
 	sigemptyset(catch);
 
+	spin_lock_irq(&p->sigmask_lock);
+
 	if (p->sig) {
 		k = p->sig->action;
 		for (i = 1; i <= _NSIG; ++i, ++k) {
@@ -235,6 +237,7 @@
 				sigaddset(catch, i);
 		}
 	}
+	spin_unlock_irq(&p->sigmask_lock);
 }
 
 static inline char * task_sig(struct task_struct *p, char *buffer)

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