Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37599291
en ru br
ALT Linux repos
S:1.0.8-alt3

Group :: Terminals
RPM: ttyrec

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: 08_sigchld.diff
Download


Description: Don't exit at SIGCHLD handler
Auther: NIIBE Yutaka <gniibe@fsij.org>
Reported-By: Joey Hess <joeyh@debian.org>
Bug-Debian: http://bugs.debian.org/558992
Reviewed-By: NIIBE Yutaka <gniibe@fsij.org>
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 {
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin