[PATCH libpciaccess] Allow building without O_CLOEXEC
Aaron Plattner
aplattner at nvidia.com
Mon Sep 22 13:43:29 PDT 2014
On 09/22/2014 01:40 PM, Mateusz Jończyk wrote:
> W dniu 22.09.2014 o 22:12, Aaron Plattner pisze:
>> On 09/22/2014 12:56 PM, Jasper St. Pierre wrote:
>>> How old? O_CLOEXEC is part of the 2008 POSIX specification. I really
>>> wouldn't like to build on anything older than that... :(
>
> You could just do:
> #define O_CLOEXEC 0
Sorry, I should have clarified that nvidia-installer does fork & exec
other processes, it just doesn't do it from threads or signal handlers
that could be subject to the FD_CLOEXEC race.
--
Aaron
More information about the xorg-devel
mailing list