patch-2.1.57 linux/arch/mips/kernel/irixsig.c

Next file: linux/arch/mips/kernel/syscalls.h
Previous file: linux/arch/m68k/kernel/entry.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.56/linux/arch/mips/kernel/irixsig.c linux/arch/mips/kernel/irixsig.c
@@ -565,7 +565,7 @@
 			timeo = 1;
 			break;
 		}
-		if(current->signal & ~(current->blocked)) return -EINTR;
+		if(signal_pending(current)) return -EINTR;
 	}
 
 	if(timeo) return -EAGAIN;
@@ -692,7 +692,7 @@
 		if(options & W_NOHANG)
 			goto end_waitsys;
 		retval = -ERESTARTSYS;
-		if(current->signal & ~current->blocked)
+		if(signal_pending(current))
 			goto end_waitsys;
 		current->state = TASK_INTERRUPTIBLE;
 		schedule();

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