libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libmicrohttpd] upgrading and life cycle of sockets


From: Christian Grothoff
Subject: Re: [libmicrohttpd] upgrading and life cycle of sockets
Date: Thu, 26 Nov 2020 13:19:51 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0

On 11/26/20 1:14 PM, José Bollo wrote:
>> For child processes, not really: you can even do the dup()ing only
>> after fork() if you manually clear the close-on-exec flag. So you
>> don't need any extra FDs if you do it 'just right'.
> Yeah but fork+exec is a requirement

I don't get it. If you don't want to fork+exec, then you don't need to
dup() and can just use the fd directly.

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]