]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - unix/pty.c
Forgot to initialise ssh->portfwds to NULL. Unusually, this was
[PuTTY.git] / unix / pty.c
index 50b548ce437f4b454660a4199bc74cbbc3f5f10d..bef9f2fab429a5b60f8f09ec02b2e99f40949e38 100644 (file)
@@ -621,10 +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. Reverse 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);
+       block_signal(SIGCHLD, 0);
        if (pty_argv)
            execvp(pty_argv[0], pty_argv);
        else {