cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [bagder/curl] dd73c9: curl: ignore SIGPIPE - compilation fix

From: Yang Tse <yangsita_at_gmail.com>
Date: Wed, 9 Jan 2013 22:50:46 +0100

>> https://github.com/bagder/curl/commit/dd73c924ac3bf7ab4aa32c57ec514b35c02b1460
>
>
> Is checking only for a defined SIGPIPE really good enough? I mean, is just
> having that define around really a good enough hint that signal() is also
> present?

Probably, but not perfect.

Changing condition now to...

#if defined(HAVE_SIGNAL) && defined(SIGPIPE)

This should cover all cases. Windows has signal() and no SIGPIPE.

-- 
-=[Yang]=-
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-01-09