patch-2.3.16 linux/net/core/sock.c

Next file: linux/net/decnet/Makefile
Previous file: linux/net/core/netfilter.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.15/linux/net/core/sock.c linux/net/core/sock.c
@@ -672,7 +672,7 @@
 	for (;;) {
 		if (signal_pending(current))
 			break;
-		current->state = TASK_INTERRUPTIBLE;
+		set_current_state(TASK_INTERRUPTIBLE);
 		if (atomic_read(&sk->wmem_alloc) < sk->sndbuf)
 			break;
 		if (sk->shutdown & SEND_SHUTDOWN)
@@ -681,7 +681,7 @@
 			break;
 		schedule();
 	}
-	current->state = TASK_RUNNING;
+	__set_current_state(TASK_RUNNING);
 	remove_wait_queue(sk->sleep, &wait);
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)