]> git.ipfire.org Git - thirdparty/coreutils.git/commit
Include "cloexec.h" first, and <unistd.h> before <fcntl.h>.
authorJim Meyering <jim@meyering.net>
Thu, 4 Mar 2004 08:42:20 +0000 (08:42 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 4 Mar 2004 08:42:20 +0000 (08:42 +0000)
commita1c30fd7d14b21443adf9ed9525474723a25f7e4
tree69fdc7175b74497c95b348d240dc5a86af59b94f
parente819dd0dd9c2b76a57c78944c4835a7a3ea5ccfe
Include "cloexec.h" first, and <unistd.h> before <fcntl.h>.
(set_cloexec_flag): Use bool for booleans.  All uses changed.
If F_GETFD returns a negative number (not just -1), report a
failure.  Don't use F_SETFD if the flags are already right.
Don't report a failure with F_SETFD unless it returns -1.
lib/cloexec.c