Files
xserver/os
Jeremy Huddleston Sequoia 065eb66124 os/inputthread: Fix setting of cloexec on file descriptors
O_CLOEXEC is not a file bit.  It is not setable with F_SETFL.  One must
use it when calling open(2).  To set it cloexec on an existing fd,
F_SETFD and FD_CLOEXEC must be used.

This also fixes a build failure regression on configurations that don't
have O_CLOEXEC defined.

cf: http://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html
Regressed-in: 30ac756798

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Reviewed-by: Julien Cristau <jcristau@debian.org>
2016-09-13 16:10:56 -04:00
..
2015-11-30 11:51:22 -05:00
2014-11-12 10:25:00 +10:00
2012-03-21 13:54:42 -07:00
2016-08-15 14:02:48 -04:00
2016-07-21 15:04:47 -04:00
2012-03-21 13:54:42 -07:00
2014-11-12 10:25:00 +10:00
2016-07-21 15:04:47 -04:00
2016-07-21 15:04:47 -04:00
2015-11-30 11:51:22 -05:00
2012-03-21 13:54:42 -07:00
2012-03-21 13:54:42 -07:00
2016-07-21 15:04:47 -04:00
2016-07-21 15:04:47 -04:00
2016-02-08 21:49:56 -05:00
2016-07-21 15:04:47 -04:00
2013-10-31 16:58:12 -07:00