socket closing question

Derek Atkins warlord at MIT.EDU
Sat May 3 12:09:32 EDT 2003


Jerry Feldman <gaf at blu.org> writes:

> The write(2) function returns -1 with errno==EPIPE when the socket has
> been closed. 

Actually, some times you'll get a SIGPIPE in this case...
So you probably should be careful to block/handle that signal.

-derek
-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available



More information about the Discuss mailing list