From 04ac2824f9fa74583548b0cd58097d550a09b22a Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 6 Nov 2019 20:49:08 -0800 Subject: open-process: close-on-exec bugfix. This is a regression introduce in the 2019-06-09 commit 4f33b169dc547b7f9af6f2f1c173d36fc4d62fe8 "Adding fcntl interface." which changed HAVE_FCNTL_H to HAVE_FCNTL in the configure script, without making the same change in stream.c. * stream.c: Replace HAVE_FCNTL_H with the correct HAVE_FCNTL, so that we're once again actually including the header now, and setting the close-on-exec flag on the pipe in open-process. --- stream.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stream.c b/stream.c index a57f9280..0993ef97 100644 --- a/stream.c +++ b/stream.c @@ -43,7 +43,7 @@ #ifdef __CYGWIN__ #include #endif -#if HAVE_FCNTL_H +#if HAVE_FCNTL #include #endif #include @@ -4126,7 +4126,7 @@ val open_process(val name, val mode_str, val args) free(argv[i]); free(argv); -#if HAVE_FCNTL_H +#if HAVE_FCNTL fcntl(whichfd, F_SETFD, FD_CLOEXEC); #endif -- cgit v1.2.3