patch-2.1.57 linux/ipc/msg.c

Next file: linux/kernel/exit.c
Previous file: linux/include/linux/wrapper.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.56/linux/ipc/msg.c linux/ipc/msg.c
@@ -136,7 +136,7 @@
 			/* still no space in queue */
 			if (msgflg & IPC_NOWAIT)
 				return -EAGAIN;
-			if (current->signal & ~current->blocked)
+			if (signal_pending(current))
 				return -EINTR;
 			if (in_interrupt()) {
 				/* Very unlikely, but better safe than sorry */
@@ -383,7 +383,7 @@
 				DROP_TIMER;
 				return -ENOMSG;
 			}
-			if (current->signal & ~current->blocked) {
+			if (signal_pending(current)) {
 				DROP_TIMER;
 				return -EINTR; 
 			}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov