This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Explicitly use and check for FD_CLOEXEC.
authorJarkko Hietaniemi <jhi@iki.fi>
Wed, 26 Aug 2015 12:55:37 +0000 (08:55 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 26 Aug 2015 15:40:40 +0000 (11:40 -0400)
commit131d45a96c910d0fe46597ab156a35837879bf9c
tree0fca2751032d5ac423fae4e625eab7cce08386ec
parent5798d63101f7b13bd5aaf5a5bf429a8e08991016
Explicitly use and check for FD_CLOEXEC.

This may break places which have the FD_CLOEXEC functionality
but do not have the FD_CLOEXEC define.

In any case, using a boolean for the F_SETFD flag is icky.
Using an explicit 1 is also dubious.
perl.c
pp_sys.c
toke.c
util.c