mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-21 22:28:37 -05:00
May as well set FD_CLOEXEC on the signal pipe as well.
This commit is contained in:
parent
30cf7371f3
commit
561f97874b
@ -949,6 +949,8 @@ int main(int argc, char **argv)
|
|||||||
/* We don't want the signal handler to block if the pipe's full. */
|
/* We don't want the signal handler to block if the pipe's full. */
|
||||||
nonblock(signalpipe[0]);
|
nonblock(signalpipe[0]);
|
||||||
nonblock(signalpipe[1]);
|
nonblock(signalpipe[1]);
|
||||||
|
cloexec(signalpipe[0]);
|
||||||
|
cloexec(signalpipe[1]);
|
||||||
putty_signal(SIGWINCH, sigwinch);
|
putty_signal(SIGWINCH, sigwinch);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user