No subject


Thu May 28 17:10:26 EDT 2009


Note that on some systems, a return value of "-1" could mean that child processes are being automatically reaped.  See perlipc for details, and for other examples.



Modified: trunk/bin/opensrf-perl.pl.in
===================================================================
--- trunk/bin/opensrf-perl.pl.in	2009-11-30 05:12:35 UTC (rev 1864)
+++ trunk/bin/opensrf-perl.pl.in	2009-12-02 22:42:36 UTC (rev 1865)
@@ -127,6 +127,7 @@
         launch_listener($service);
         $0 = "OpenSRF controller [$service]";
         while(my $pid = waitpid(-1, 0)) {
+            last if $pid == -1;
             $logger->debug("Cleaning up Perl $service process $pid");
         }
     }



More information about the opensrf-commits mailing list