Stop `pterm -ut-' leaving the unnecessary utmp helper as a zombie
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 22 Oct 2002 13:26:57 +0000 (13:26 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 22 Oct 2002 13:26:57 +0000 (13:26 +0000)
process (Debian bug #165887).

git-svn-id: svn://svn.tartarus.org/sgt/putty@2113 cda61777-01e9-0310-a592-d414129be87e

unix/pty.c

index 3fd8b3f..7fe0dc7 100644 (file)
@@ -345,6 +345,7 @@ void pty_pre_init(void)
        close(pipefd[0]);
        pty_utmp_helper_pid = pid;
        pty_utmp_helper_pipe = pipefd[1];
+       signal(SIGCHLD, sigchld_handler);
     }
 #endif