Re: SIGIO on socket disconnect

Paul Vojta (vojta@math.berkeley.edu)
Fri, 7 May 1999 23:10:06 -0700


> From: kuznet@ms2.inr.ac.ru
> Subject: Re: SIGIO on socket disconnect
> To: vojta@math.BErkeley.EDU (Paul Vojta)
> Date: Fri, 7 May 1999 20:34:00 +0400 (MSK DST)
> Cc: linux-kernel@vger.rutgers.edu
>
> Hello!
>
> > Recently I have run across a problem with Linux 2.2 kernels concerning the
> > generation of SIGIO signals when the far end of a socket disconnects.
>
> Yes :( It calls sk->state_change, which does not generate signal.
>
> BTW I have no idea why it could work in 2.0. It does exactly
> the same thing.

I believe that 2.0 does it in sock_release_peer() in linux-2.0.36/net/socket.c.

> In any case, try the patch enclosed.
>
> Alexey

Works. Thanks!

--Paul Vojta, vojta@math.berkeley.edu

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/