This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] fhandler_socket::sendto and EPIPE


On Wed, Mar 19, 2003 at 06:17:49PM -0600, Brian Ford wrote:
> 2003-03-19  Brian Ford  <ford at vss dot fsi dot com>
> 
> 	* fhandler_socket.cc (sendto): Handle SIGPIPE for ECONNRESET.

Hmm, while this looks okay on the first glance, reading SUSv3 and the
Linux man pages tell another story.  SUSv3 has an explicit error code
ECONNRESET which has nothing to do with the EPIPE error.  The Linux
man page explicitely mentions that EPIPE is generated if "the *local*
end of a socket has been shut down [...]".  So I think this patch is
not correct, sorry.

OTOH, both texts tell us that this error code is only valid for connection
oriented socket.  A test for this is missing in the Cygwin sendto function.
I'll add this.

Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin at cygwin dot com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]