curl-library
Re: libcurl and sock_cloexec
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 28 Apr 2011 13:10:47 +0200 (CEST)
Date: Thu, 28 Apr 2011 13:10:47 +0200 (CEST)
On Tue, 26 Apr 2011, Ben Noordhuis wrote:
>> I guess the question could perhaps also be put the other way: could there
>> actually and realistically be any harm in making the sockets use F_CLOEXEC
>> unconditionally?
>
> Backwards compatibility? The child process needs to handle EBADF from
> select() or poll().
Hm, ok. So there's no really easy solution to this then. I think I'll prefer
not doing anything then, and having applications that really need SOCK_CLOEXEC
use a callback for it.
If someone has another opinion, let's hear some ideas on how to use this
option without harming existing users.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-04-28