patch-1.3.46 linux/net/netlink.c

Next file: linux/net/netrom/af_netrom.c
Previous file: linux/net/ipx/af_ipx.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.45/linux/net/netlink.c linux/net/netlink.c
@@ -90,7 +90,7 @@
 		if(file->f_flags&O_NONBLOCK)
 		{
 			sti();
-			return -EWOULDBLOCK;
+			return -EAGAIN;
 		}
 		interruptible_sleep_on(&read_space_wait[minor]);
 		if(current->signal & ~current->blocked)
@@ -199,7 +199,7 @@
 		save_flags(flags);
 		cli();
 		if(rdq_size[unit]+skb->len>MAX_QBYTES)
-			ret=-EWOULDBLOCK;
+			ret=-EAGAIN;
 		else
 		{	
 			skb_queue_tail(&skb_queue_rd[unit], skb);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this