From 5ce13aad0f7e710abb0c5aa94ac7429966e6d877 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 22 Oct 2002 13:26:57 +0000 Subject: [PATCH] Stop `pterm -ut-' leaving the unnecessary utmp helper as a zombie process (Debian bug #165887). [originally from svn r2113] --- unix/pty.c | 1 + 1 file changed, 1 insertion(+) diff --git a/unix/pty.c b/unix/pty.c index 3fd8b3f9..7fe0dc73 100644 --- a/unix/pty.c +++ b/unix/pty.c @@ -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