1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 01:02:24 +00:00

May as well set FD_CLOEXEC on the signal pipe as well.

This commit is contained in:
Ben Harris 2016-05-01 17:55:07 +02:00
parent 30cf7371f3
commit 561f97874b

View 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);
/*