patch-2.4.5 linux/kernel/context.c
Next file: linux/kernel/exit.c
Previous file: linux/ipc/shm.c
Back to the patch index
Back to the overall index
-  Lines: 11
-  Date:
Sat May 19 17:47:55 2001
-  Orig file: 
v2.4.4/linux/kernel/context.c
-  Orig date: 
Fri Jan 12 09:52:41 2001
diff -u --recursive --new-file v2.4.4/linux/kernel/context.c linux/kernel/context.c
@@ -101,8 +101,10 @@
 		if (signal_pending(curtask)) {
 			while (waitpid(-1, (unsigned int *)0, __WALL|WNOHANG) > 0)
 				;
+			spin_lock_irq(&curtask->sigmask_lock);
 			flush_signals(curtask);
 			recalc_sigpending(curtask);
+			spin_unlock_irq(&curtask->sigmask_lock);
 		}
 	}
 }
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)