X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=unix%2Fpty.c;h=b9bd510b1f83326caecba322f005f66240d87fc2;hb=4a8c36d4b739392b27ffefb1cacfdb6f41029507;hp=50b548ce437f4b454660a4199bc74cbbc3f5f10d;hpb=7ecf13564a8d716000ce78146d1aaf4422432a4f;p=PuTTY.git diff --git a/unix/pty.c b/unix/pty.c index 50b548ce..b9bd510b 100644 --- a/unix/pty.c +++ b/unix/pty.c @@ -621,10 +621,18 @@ static const char *pty_init(void *frontend, void **backend_handle, Config *cfg, /* * SIGINT and SIGQUIT may have been set to ignored by our * parent, particularly by things like sh -c 'pterm &' and - * some window managers. Reverse this for our child process. + * some window managers. SIGCHLD, meanwhile, has been + * tinkered with by the watchdog process. Reverse all this + * for our child process. */ putty_signal(SIGINT, SIG_DFL); putty_signal(SIGQUIT, SIG_DFL); + { + sigset_t set; + sigemptyset(&set); + sigaddset(&set, SIGCHLD); + sigprocmask(SIG_UNBLOCK, &set, NULL); + } if (pty_argv) execvp(pty_argv[0], pty_argv); else {