Re: AF_UNIX hangs

2001-02-01 Thread David S. Miller
[EMAIL PROTECTED] writes: > Yep... Damn, specially split errno and ready values and forgot to use > this. 8) Sorry. Patch applied. Later, David S. Miller [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] P

Re: AF_UNIX hangs

2001-02-01 Thread kuznet
Hello! > Looking at net/core/datagram.c:wait_for_packet the code will return 0 Yep... Damn, specially split errno and ready values and forgot to use this. 8) Sorry. Alexey --- ../vger3-010130/linux/net/core/datagram.c Thu Dec 28 22:44:08 2000 +++ linux/net/core/datagram.c Thu Feb 1 22:4

AF_UNIX hangs

2001-02-01 Thread Alan Cox
Looking at net/core/datagram.c:wait_for_packet the code will return 0 when the socket has been shutdown. That causes skb_recv_datagram to loop which is in itself obviously incorrect for a shutdown socket (its in EOF state) I suspect it should read something like /* Socket shut down? */