[Bps-public-commit] r16228 - in Pushmi/trunk: Pushmi-Admin/lib/Pushmi/Admin/Model

alexmv at bestpractical.com alexmv at bestpractical.com
Mon Oct 6 17:09:21 EDT 2008


Author: alexmv
Date: Mon Oct  6 17:09:20 2008
New Revision: 16228

Modified:
   Pushmi/trunk/   (props changed)
   Pushmi/trunk/Pushmi-Admin/lib/Pushmi/Admin/Model/Replica.pm

Log:
 r37989 at kohr-ah:  chmrr | 2008-10-06 17:07:19 -0400
  * Starts watchers on creation, ignore forked children when they die


Modified: Pushmi/trunk/Pushmi-Admin/lib/Pushmi/Admin/Model/Replica.pm
==============================================================================
--- Pushmi/trunk/Pushmi-Admin/lib/Pushmi/Admin/Model/Replica.pm	(original)
+++ Pushmi/trunk/Pushmi-Admin/lib/Pushmi/Admin/Model/Replica.pm	Mon Oct  6 17:09:20 2008
@@ -48,6 +48,9 @@
 
 };
 
+# Ignore all children when they die
+$SIG{CHLD} = 'IGNORE';
+
 sub validate_name {
     my $self = shift;
     my $name = shift;
@@ -115,6 +118,7 @@
 EOT
         close LOG;
         Pushmi::Admin->update_apache;
+        $self->start_watcher;
     }
 
     return ( $id, $msg );



More information about the Bps-public-commit mailing list