Description: Don't exit at SIGCHLD handler Auther: NIIBE Yutaka Reported-By: Joey Hess Bug-Debian: http://bugs.debian.org/558992 Reviewed-By: NIIBE Yutaka Last-Update: 2010-04-27 --- ttyrec-1.0.8.orig/ttyrec.c 2010-04-27 10:22:52.000000000 +0900 +++ ttyrec-1.0.8/ttyrec.c 2010-04-27 11:12:35.000000000 +0900 @@ -209,14 +209,10 @@ union wait status; #endif /* !SVR4 */ register int pid; - register int die = 0; while ((pid = wait3((int *)&status, WNOHANG, 0)) > 0) if (pid == child) - die = 1; - - if (die) - done(); + break; } struct linebuf {