01-23-04 10:02 PM
Chuck Dillon <cdillon@nimblegen.com> writes:
quote:
>It's probably the other way round. If the server side closes a socket
>the Linux based client will get a SIGPIPE when it tries to read from it
>or write to it. IOW, SIGPIPE is probably a symptom of a lost
>connection rather than of what is causing it.
Only on write, not read. (Traditionally, read return values are checked
because the number of bytes read is usually uncertain; writes are
often unchecked and are assumed not to fail; SIGPIPE terminates
such badly behaved programs)
Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
[ Post a follow-up to this message ]
|