]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
May as well set FD_CLOEXEC on the signal pipe as well.
authorBen Harris <bjh21@bjh21.me.uk>
Sun, 1 May 2016 15:55:07 +0000 (17:55 +0200)
committerBen Harris <bjh21@bjh21.me.uk>
Sun, 1 May 2016 16:13:03 +0000 (18:13 +0200)
unix/uxplink.c

index c3a1b8ca8886c75fa3ce527cfb922921e4b18d34..4eb84cd33e41898f6202880f89174d32e535b684 100644 (file)
@@ -949,6 +949,8 @@ int main(int argc, char **argv)
     /* We don't want the signal handler to block if the pipe's full. */
     nonblock(signalpipe[0]);
     nonblock(signalpipe[1]);
+    cloexec(signalpipe[0]);
+    cloexec(signalpipe[1]);
     putty_signal(SIGWINCH, sigwinch);
 
     /*