add SIGCHILD
authorminima <minima>
Fri, 30 Mar 2001 21:38:18 +0000 (21:38 +0000)
committerminima <minima>
Fri, 30 Mar 2001 21:38:18 +0000 (21:38 +0000)
perl/DXDebug.pm
src/client.c

index 0e96362674a3a8b3efadb4b98aa5a421ef3e2c95..7640a2a1cd5d594607d77932a370379d23902128 100644 (file)
@@ -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^$_"); 
                }
        }
 }
index a3147d551dd4a91bd74dec75519e7131e2740193..29c8bf5cd0f5b654cf6411e776449339d55e08ac 100644 (file)
@@ -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);