1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

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

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