summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2017-12-22 15:27:19 +0000
committerZefram <zefram@fysh.org>2017-12-22 16:37:51 +0000
commit498362941ad4570ba014a62bbe2ab23f1ea2933f (patch)
tree14cd82d031db0d7b88885c3cda577cbfb54e8dc6 /perl.c
parenta50ffd24fc4971e22bead1ab6f1eada47e042362 (diff)
downloadperl-498362941ad4570ba014a62bbe2ab23f1ea2933f.tar.gz
set FD_CLOEXEC on debug-leaking-scalars sockets
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl.c b/perl.c
index a4e0d19235..d7df149d75 100644
--- a/perl.c
+++ b/perl.c
@@ -742,7 +742,7 @@ perl_destruct(pTHXx)
fail gracefully */
int fd[2];
- if(socketpair(AF_UNIX, SOCK_STREAM, 0, fd)) {
+ if(PerlSock_socketpair_cloexec(AF_UNIX, SOCK_STREAM, 0, fd)) {
perror("Debug leaking scalars socketpair failed");
abort();
}