This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
set FD_CLOEXEC atomically in easy cases
authorZefram <zefram@fysh.org>
Tue, 19 Dec 2017 16:53:39 +0000 (16:53 +0000)
committerZefram <zefram@fysh.org>
Fri, 22 Dec 2017 16:13:23 +0000 (16:13 +0000)
commit74df577f6857d2d8543c90e43f90405f92948a61
treeaf79ab48854bb2583b061679690f55c33ce0115f
parentf9821aff984443d5ac38188fab7a9b12dd3cb09c
set FD_CLOEXEC atomically in easy cases

In many places where a file descriptor is being opened, open it with
FD_CLOEXEC already set if possible.  This commit covers the easy cases,
where the file descriptor arises without the use of PerlIO, pp_open,
or my_popen.
MANIFEST
doio.c
embed.fnc
embed.h
pp_sys.c
proto.h
t/io/pipe.t
t/io/socket.t
t/io/socketpair.t [new file with mode: 0644]
util.c