[git commit master] CLOEXEC: use open(CLOEXEC) if exist; do not check fcntl(FD_CLOEXEC) failure

Denys Vlasenko vda.linux at googlemail.com
Mon Sep 7 00:41:28 UTC 2009


On Sunday 06 September 2009 23:43, Mike Frysinger wrote:
> On Sun, Sep 6, 2009 at 3:56 PM, Denys Vlasenko wrote:
> > Then I do not understand what exactly you are saying.
> 
> i'll break it down.  these things need to happen:
>  - revert all this #ifndef O_CLOEXEC
>  - import __ASSUME_O_CLOEXEC from glibc into our kernel-features.h
>  - remove the #if 0 in all the bits/fcntl.h around O_CLOEXEC
>  - change the logic from "if (O_CLOEXEC == 0)" to "#ifndef __ASSUME_O_CLOEXEC"

Thanks for explanation.
--
vda


More information about the uClibc mailing list