X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=unix%2Fuxpty.c;h=e96ff3568e7abe89a3cae137c7e0844fab23f8e1;hb=eac66b0281f30be97094fe94174e65477b018812;hp=79a60f3c139c4fbc75517f9f9392c0d8a73db4be;hpb=a5588cd6353d43a5ada8e4a866b896372574cea5;p=PuTTY.git diff --git a/unix/uxpty.c b/unix/uxpty.c index 79a60f3c..e96ff356 100644 --- a/unix/uxpty.c +++ b/unix/uxpty.c @@ -912,14 +912,14 @@ static const char *pty_init(void *frontend, void **backend_handle, Conf *conf, /* * SIGINT, SIGQUIT and SIGPIPE may have been set to ignored by * our parent, particularly by things like sh -c 'pterm &' and - * some window or session managers. SIGCHLD, meanwhile, was - * blocked during pt_main() startup. Reverse all this for our - * child process. + * some window or session managers. SIGPIPE was also + * (potentially) blocked by us during startup. Reverse all + * this for our child process. */ putty_signal(SIGINT, SIG_DFL); putty_signal(SIGQUIT, SIG_DFL); putty_signal(SIGPIPE, SIG_DFL); - block_signal(SIGCHLD, 0); + block_signal(SIGPIPE, 0); if (pty_argv) { /* * Exec the exact argument list we were given.