Re: Problems catching SIGPIPE when writing to a broken stream

2002-09-23 Thread Peter Pentchev
On Mon, Sep 23, 2002 at 04:42:25PM +0300, Peter Pentchev wrote: > On Mon, Sep 23, 2002 at 04:34:18PM +0300, Vladimir Terziev wrote: > > > > Hi hackers, > > > > I'm implementing a programmme, which writes a big amount of data (using >write(2)) to a socket. > > When the communication

Re: Problems catching SIGPIPE when writing to a broken stream

2002-09-23 Thread Peter Pentchev
On Mon, Sep 23, 2002 at 04:34:18PM +0300, Vladimir Terziev wrote: > > Hi hackers, > > I'm implementing a programmme, which writes a big amount of data (using >write(2)) to a socket. > When the communication stream has been closed by some reason, during the >write(2) call, my

Problems catching SIGPIPE when writing to a broken stream

2002-09-23 Thread Vladimir Terziev
Hi hackers, I'm implementing a programmme, which writes a big amount of data (using write(2)) to a socket. When the communication stream has been closed by some reason, during the write(2) call, my process receives SIGPIPE. I tryed to catch it with signal(3) and change