Re: Broken pipe on Solaris

David A. Lee (dave@calldei.com)
Thu, 6 Feb 1997 15:35:14 -0800 (PST)


SIGPIPE will occur on *any* un*x system if you write to the output (pipe)
after it's been closed by the other end.  When this occurs depends greatly
on the timing and how much buffering is done in stdio.

> 
> If the server just close the connection when we connect we might get a
> SIGPIPE signal on Solaris.  Does anybody know why it should be like
> that?  What other systems will throw a SIGPIPE on a program that just
> tries to connect?
> 
> Does libwww-perl need a $SIG{PIPE} handler?
> 
> The following URL demonstrates this "feature":
> 
>    lwp-request -xes http://www.edb.tih.no/
> 
> Regards,
> Gisle
>