X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/f7aa4b367eaf2c1e928f97263bcf4da74680aff3..f9520103d3b3a1a36fdb30a46aa4f6c1cd3f1c9e:/unix/gtkwin.c diff --git a/unix/gtkwin.c b/unix/gtkwin.c index ee91a93e..ad8ade52 100644 --- 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]);