X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=unix%2Fpty.c;h=bef9f2fab429a5b60f8f09ec02b2e99f40949e38;hb=4cae179ff8c8198dfc7aa2fd98400bc03c940d15;hp=b9bd510b1f83326caecba322f005f66240d87fc2;hpb=ebf507497dc5eb97e825084f7fbf756f2283d496;p=PuTTY.git diff --git a/unix/pty.c b/unix/pty.c index b9bd510b..bef9f2fa 100644 --- a/unix/pty.c +++ b/unix/pty.c @@ -621,18 +621,13 @@ 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. SIGCHLD, meanwhile, has been - * tinkered with by the watchdog process. Reverse all this - * for our child process. + * some window managers. SIGCHLD, meanwhile, was blocked + * during pt_main() startup. 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); - } + block_signal(SIGCHLD, 0); if (pty_argv) execvp(pty_argv[0], pty_argv); else {