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)
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.


No differences found