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