This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
mask off SOCK_CLOEXEC in socketpair() emulation
authorZefram <zefram@fysh.org>
Fri, 22 Dec 2017 15:23:11 +0000 (15:23 +0000)
committerZefram <zefram@fysh.org>
Fri, 22 Dec 2017 16:37:47 +0000 (16:37 +0000)
commita50ffd24fc4971e22bead1ab6f1eada47e042362
tree3573a518663bfc54df935bbbf6b826dd966edaa8
parent2cdf406af42834c46ef407517daab0734f7066fc
mask off SOCK_CLOEXEC in socketpair() emulation

In the unlikely situation that we have SOCK_CLOEXEC but are emulating
socketpair(), having the bit set could confuse the emulation.  It's not
worth actually implementing SOCK_CLOEXEC logic for this situation, so
just mask it off.  The higher-level logic of PerlSock_socketpair_cloexec()
will handle the bit being ineffective.
util.c