Re: [Patch]Re: Serious reproducible 2.4.x kernel hang

2001-02-02 Thread David S. Miller
Prasanna P Subash writes: > I looked at the skb_recv_datagram code and noticed that wait_for_packet is not > returning an error, even while trying to read a closed socket. > Anyways here is a patch against 2.4.1 that will fix the issue. > Please feel free to flame me about the patch :) Pleas

[Patch]Re: Serious reproducible 2.4.x kernel hang

2001-02-02 Thread Prasanna P Subash
> #include > #include > #include > #include > > int > main(int argc, const char* argv[]) > { > int retval; > int sockets[2]; > char buf[1]; > > retval = socketpair(PF_UNIX, SOCK_DGRAM, 0, sockets); > if (retval != 0) > { > perror("socketpair"); > exit(1); > } > shut