patch-2.1.57 linux/net/ipv4/af_inet.c

Next file: linux/net/ipv4/tcp.c
Previous file: linux/net/core/sock.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.56/linux/net/ipv4/af_inet.c linux/net/ipv4/af_inet.c
@@ -605,7 +605,7 @@
 	cli();
 	while(sk->state == TCP_SYN_SENT || sk->state == TCP_SYN_RECV) {
 		interruptible_sleep_on(sk->sleep);
-		if (current->signal & ~current->blocked) {
+		if (signal_pending(current)) {
 			sti();
 			return(-ERESTARTSYS);
 		}
@@ -670,7 +670,7 @@
 	cli();
 	while (sk2->state == TCP_SYN_RECV) {
 		interruptible_sleep_on(sk2->sleep);
-		if (current->signal & ~current->blocked)
+		if (signal_pending(current))
 			goto do_interrupted;
 	}
 	sti();

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