mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dtexec: use proper FD_CLOEXEC rather than a hardcoded 1
This commit is contained in:
parent
90baa59dc1
commit
cab52a91ef
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue