projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90baa59
)
dtexec: use proper FD_CLOEXEC rather than a hardcoded 1
author
Jon Trulson
<jon@radscan.com>
Sun, 29 Dec 2013 22:41:56 +0000
(15:41 -0700)
committer
Jon Trulson
<jon@radscan.com>
Sun, 29 Dec 2013 22:41:56 +0000
(15:41 -0700)
cde/programs/dtexec/Main.c
patch
|
blob
|
history
diff --git
a/cde/programs/dtexec/Main.c
b/cde/programs/dtexec/Main.c
index d53b1003d715dcb042403a71840bd0a493b92b16..2008c9e6a7119771c5205de189ef3ea0728baced 100644
(file)
--- 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);