Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
May as well set FD_CLOEXEC on the signal pipe as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
bjh21 committed May 1, 2016
1 parent 30cf737 commit 561f978
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions unix/uxplink.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/*
Expand Down

0 comments on commit 561f978

Please sign in to comment.