--- loncom/lonmaxima 2007/11/09 18:54:46 1.36 +++ loncom/lonmaxima 2008/02/14 14:09:43 1.37 @@ -3,7 +3,7 @@ # The LearningOnline Network with CAPA # Connect to MAXIMA CAS # -# $Id: lonmaxima,v 1.36 2007/11/09 18:54:46 albertel Exp $ +# $Id: lonmaxima,v 1.37 2008/02/14 14:09:43 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -270,11 +270,11 @@ sub make_new_child { $command->log_stdout(0); #$command->log_file("$execdir/logs/lonmaxima.session.log"); - &sync($command); for (my $i=0; $i < $MAX_CLIENTS_PER_CHILD; $i++) { &status('Accepting connections'); my $client = $server->accept() or last; + &sync($command); print $command ("display2d:false;kill(all);\n"); &getmaximaoutput($command,2); &sync($command);