bug-gnulib
[Top][All Lists]
Advanced

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

Re: proposal: module 'accept4'


From: Paolo Bonzini
Subject: Re: proposal: module 'accept4'
Date: Sun, 23 Aug 2009 18:22:51 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Lightning/1.0pre Thunderbird/3.0b3

On 08/22/2009 11:39 PM, Bruno Haible wrote:
Hi,

Here's the proposed module for function 'accept4'.

It does not define the macro SOCK_CLOEXEC. I think this macro should be
replaced by a separate module, that would then also influence socket(),
socketpair() - and what about connect()?

Opinions? Objections?

This can be committed as is but it is not enough. You have to always use a replacement (thus define the emulation as rpl_accept4) and check whether accept4 works at runtime (and similarly for pipe2) and fall back to accept+fcntl if it gives ENOSYS.

Paolo





reply via email to

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