curl-library
Re: Re: SIGPIPE
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 2 Dec 2003 23:02:40 +0100 (CET)
Date: Tue, 2 Dec 2003 23:02:40 +0100 (CET)
On Tue, 2 Dec 2003, Giuseppe Attardi wrote:
> Wouldn't be enough just to add to setup.h:
>
> #ifndef MSG_NOSIGNAL
> #define MSG_NOSIGNAL 0
> #endif
>
> and then use
>
> #define sread(x,y,z) recv(x,y,z,MSG_NOSIGNAL)
Hehe, yes that would be significantly easier.
However, it would make an uglier check when we use that HAVE_MSG_NOSIGNAL
symbol to decide weather to include the SIGPIPE ignore code or not.
But then, I could make an #else and define the HAVE_MSG_NOSIGNAL there...
Thanks for being clear in your head when mine is filled with mist! ;-)
-- Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/ [[ Do not post private mails to this email address. They won't reach me. ]] ------------------------------------------------------- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8Received on 2003-12-02