--- loncom/lonmaxima 2006/03/04 06:51:02 1.9 +++ loncom/lonmaxima 2006/03/04 06:56:10 1.10 @@ -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 @@ close(PIDSAVE); &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');