From: minima Date: Fri, 30 Mar 2001 21:38:18 +0000 (+0000) Subject: add SIGCHILD X-Git-Tag: R_1_47~63 X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=d339a58bd419901bf4294aaa138c000a8c2ae139;hp=fca6f1bb891577ce10f81219ce9815340d45a0c3;p=spider.git add SIGCHILD --- 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);