From: Jon Trulson Date: Sun, 29 Dec 2013 22:41:56 +0000 (-0700) Subject: dtexec: use proper FD_CLOEXEC rather than a hardcoded 1 X-Git-Tag: 2.2.1~16 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cab52a91ef6ad688459cf4afa87ac5468e6bdae2;p=oweals%2Fcde.git dtexec: use proper FD_CLOEXEC rather than a hardcoded 1 --- 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);