projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Centralise calls to fcntl into functions that carefully check the
[u/mdw/putty]
/
unix
/
gtkwin.c
diff --git
a/unix/gtkwin.c
b/unix/gtkwin.c
index
ee91a93
..
ad8ade5
100644
(file)
--- a/
unix/gtkwin.c
+++ b/
unix/gtkwin.c
@@
-3307,7
+3307,7
@@
void dup_session_menuitem(GtkMenuItem *item, gpointer gdata)
}
sprintf(option, "---[%d,%d]", pipefd[0], size);
-
fcntl(pipefd[0], F_SETFD, 0
);
+
noncloexec(pipefd[0]
);
fork_and_exec_self(inst, pipefd[1], option, NULL);
close(pipefd[0]);