Re: Kernel bug with UNIX sockets not detecting other end gone?

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Fri May 18 2001 - 15:02:51 EST


> What I'm seeing however in an other program is that select says I
> can read from the socket, and that read returns 0, with errno set
> to EGAIN. I call select() again, with returns and says I can read

No no no. If the read does not return -1 it does not change errno. EOF isnt
an error.

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



This archive was generated by hypermail 2b29 : Wed May 23 2001 - 21:00:30 EST