From d339a58bd419901bf4294aaa138c000a8c2ae139 Mon Sep 17 00:00:00 2001 From: minima Date: Fri, 30 Mar 2001 21:38:18 +0000 Subject: [PATCH] add SIGCHILD --- perl/DXDebug.pm | 7 +++---- src/client.c | 6 ++++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/perl/DXDebug.pm b/perl/DXDebug.pm index 0e963626..7640a2a1 100644 --- a/perl/DXDebug.pm +++ b/perl/DXDebug.pm @@ -57,10 +57,9 @@ sub dbgstore chomp $r; my @l = split /\n/, $r; for (@l) { - my $l = $_; - $l =~ s/([\x00\x08\x0B-\x1f\x7f-\xff])/uc sprintf("%%%02x",ord($1))/eg; - print "$l\n" if defined \*STDOUT; - $fp->writeunix($t, "$t^$l"); + s/([\x00\x08\x0B-\x1f\x7f-\xff])/uc sprintf("%%%02x",ord($1))/eg; + print "$_\n" if defined \*STDOUT; + $fp->writeunix($t, "$t^$_"); } } } diff --git a/src/client.c b/src/client.c index a3147d55..29c8bf5c 100644 --- a/src/client.c +++ b/src/client.c @@ -901,7 +901,13 @@ main(int argc, char *argv[]) #ifdef SIGPWR signal(SIGPWR, terminate); #endif +#ifdef SIGCLD signal(SIGCLD, reaper); +#else + #ifdef SIGCHILD + signal(SIGCHILD, reaper); + #endif +#endif /* init a few things */ chain_init(&echobase); -- 2.34.1