dtexec: use proper FD_CLOEXEC rather than a hardcoded 1

This commit is contained in:
Jon Trulson 2013-12-29 15:41:56 -07:00
parent 90baa59dc1
commit cab52a91ef
1 changed files with 1 additions and 1 deletions

View File

@ -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);