patch-2.1.57 linux/net/ax25/af_ax25.c

Next file: linux/net/core/datagram.c
Previous file: linux/mm/vmscan.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.56/linux/net/ax25/af_ax25.c linux/net/ax25/af_ax25.c
@@ -1174,7 +1174,7 @@
 	/* A DM or timeout will go to closed, a UA will go to ABM */
 	while (sk->state == TCP_SYN_SENT) {
 		interruptible_sleep_on(sk->sleep);
-		if (current->signal & ~current->blocked) {
+		if (signal_pending(current)) {
 			sti();
 			return -ERESTARTSYS;
 		}
@@ -1227,7 +1227,7 @@
 				return -EWOULDBLOCK;
 			}
 			interruptible_sleep_on(sk->sleep);
-			if (current->signal & ~current->blocked) {
+			if (signal_pending(current)) {
 				sti();
 				return -ERESTARTSYS;
 			}

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