From cab52a91ef6ad688459cf4afa87ac5468e6bdae2 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Sun, 29 Dec 2013 15:41:56 -0700 Subject: [PATCH] dtexec: use proper FD_CLOEXEC rather than a hardcoded 1 --- cde/programs/dtexec/Main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cde/programs/dtexec/Main.c b/cde/programs/dtexec/Main.c index d53b1003..2008c9e6 100644 --- a/cde/programs/dtexec/Main.c +++ b/cde/programs/dtexec/Main.c @@ -685,7 +685,7 @@ ExecuteCommand ( for (i=3; i < FOPEN_MAX; i++) { if ( i != errorpipeG[1] ) - (void) fcntl (i, F_SETFD, 1); + (void) fcntl (i, F_SETFD, FD_CLOEXEC); } (void) execvp(commandArray[0], commandArray); -- 2.25.1