]> git.etc.gen.nz Git - spong.git/commitdiff
fixed problem with restarted master processes not clearing sigmask
authorStephen L Johnson <sjohnson@monsters.org>
Mon, 26 Mar 2001 19:22:52 +0000 (19:22 +0000)
committerStephen L Johnson <sjohnson@monsters.org>
Mon, 26 Mar 2001 19:22:52 +0000 (19:22 +0000)
src/spong-server.pl

index 15cb0c33f85bccbf3e821fd2bcb75c34456ffcfc..5156d1573185e7b0d2f5929b425160b60aea52ce 100755 (executable)
@@ -6,7 +6,7 @@
 # There are one or more update processes that listen for status updates 
 # from client programs.
 
-# $Id: spong-server.pl,v 1.39 2001/03/26 18:51:02 sljohnson Exp $
+# $Id: spong-server.pl,v 1.40 2001/03/26 19:22:52 sljohnson Exp $
 
 use lib "@@LIBDIR@@";
 
@@ -1427,7 +1427,11 @@ sub chld_handler {
             # I'm the parent, save the new child pid
             $proc->{'pid'} = $pid;
          } else {
-            # I'm the parent, call the function I'm assigned
+            # Clear out the sig mask we inherit from poppa
+            my $sigset = POSIX::SigSet->new;
+            sigprocmask(SIG_SETMASK, $sigset );
+
+            # I'm the child, call the function I'm assigned
             &{$proc->{'func'}}();
          }
       }