[LON-CAPA-cvs] cvs: modules /gerd/maxima lonmaxima

albertel lon-capa-cvs@mail.lon-capa.org
Sat, 04 Mar 2006 06:56:15 -0000


albertel		Sat Mar  4 01:56:15 2006 EDT

  Modified files:              
    /modules/gerd/maxima	lonmaxima 
  Log:
  - need to install the CHLD signal handler before we fork the children
    off so REAPER can handle the maxima children deaths
  
  
Index: modules/gerd/maxima/lonmaxima
diff -u modules/gerd/maxima/lonmaxima:1.9 modules/gerd/maxima/lonmaxima:1.10
--- modules/gerd/maxima/lonmaxima:1.9	Sat Mar  4 01:51:02 2006
+++ modules/gerd/maxima/lonmaxima	Sat Mar  4 01:56:10 2006
@@ -3,7 +3,7 @@
 # The LearningOnline Network with CAPA
 # Connect to MAXIMA CAS
 #
-# $Id: lonmaxima,v 1.9 2006/03/04 06:51:02 albertel Exp $
+# $Id: lonmaxima,v 1.10 2006/03/04 06:56:10 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -248,15 +248,15 @@
 &status('Starting');
      
 
+# Install signal handlers.
+$SIG{CHLD} = \&REAPER;
+$SIG{INT}  = $SIG{TERM} = \&HUNTSMAN;
+ 
 # Fork off our children.
 for (1 .. $PREFORK) {
     &make_new_child($server);
 }
  
-# Install signal handlers.
-$SIG{CHLD} = \&REAPER;
-$SIG{INT}  = $SIG{TERM} = \&HUNTSMAN;
- 
 # And maintain the population.
 while (1) {
     &status('Parent process, sleeping');