patch-2.1.57 linux/fs/fcntl.c

Next file: linux/fs/fifo.c
Previous file: linux/fs/autofs/root.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.56/linux/fs/fcntl.c linux/fs/fcntl.c
@@ -179,7 +179,7 @@
 		    (uid ^ p->suid) && (uid ^ p->uid))
 			continue;
 		p->signal |= 1 << (SIGIO-1);
-		if (p->state == TASK_INTERRUPTIBLE && (p->signal & ~p->blocked))
+		if (p->state == TASK_INTERRUPTIBLE && signal_pending(p))
 			wake_up_process(p);
 	}
 	read_unlock(&tasklist_lock);

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