dtexec: use proper FD_CLOEXEC rather than a hardcoded 1
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user