Re: problem with write() to a socket and EPIPE

2001-06-18 Thread Richard B. Johnson
On Mon, 18 Jun 2001 [EMAIL PROTECTED] wrote: > Hello, > > I've the following problem. > If the peer has closed its socket connection the second write to this > socket should return -1 and errno should be set to EPIPE (if SIGPIPE is > set > to be ignored). This never happens with my code. Why

problem with write() to a socket and EPIPE

2001-06-18 Thread oliver . kowalke
Hello, I've the following problem. If the peer has closed its socket connection the second write to this socket should return -1 and errno should be set to EPIPE (if SIGPIPE is set to be ignored). This never happens with my code. Why? OS: Linux (Debian 2.2r3) kernel: 2.4.4 compiler: gcc-2.95