[LON-CAPA-cvs] cvs: loncom /interface printout.pl

www lon-capa-cvs-allow@mail.lon-capa.org
Mon, 10 Mar 2008 22:42:31 -0000


www		Mon Mar 10 18:42:31 2008 EDT

  Modified files:              
    /loncom/interface	printout.pl 
  Log:
  Bug #5643 - maybe. If what we want to detect are INFINITE loops, maybe we
  can wait five minutes instead of 10 seconds. Given that a normal exam printing
  run for me takes about 50 minutes, I think five minutes are okay.
  
  
Index: loncom/interface/printout.pl
diff -u loncom/interface/printout.pl:1.130 loncom/interface/printout.pl:1.131
--- loncom/interface/printout.pl:1.130	Mon Mar 10 06:24:49 2008
+++ loncom/interface/printout.pl	Mon Mar 10 18:42:28 2008
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 # CGI-script to run LaTeX, dvips, ps2ps, ps2pdf etc.
 #
-# $Id: printout.pl,v 1.130 2008/03/10 10:24:49 foxr Exp $
+# $Id: printout.pl,v 1.131 2008/03/10 22:42:28 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -43,7 +43,7 @@
 
 use strict;
 
-my $busy_wait_timeout = 20;
+my $busy_wait_timeout = 300; 
 
 #   Determine if a user is operating as a student for this course/domain.
 #Parameters:
@@ -825,11 +825,11 @@
 		$unchanged_time++;
 		if ($timeout && ($unchanged_time > $timeout)) {
 		    print "<h1>Operation timed out!!!</h1>\n";
-		    print "<p>Executing $command, The output file $output_file did not grow\n";
+		    print "<p>Executing $command, the output file $output_file did not grow\n";
 		    print "after $timeout seconds.  This <em>may</em> indicate $command\n";
-		    print "is in an infinite loop.";
-		    print "See if printing fewer copies helps.  Please contact LonCAPA\n";
-		    print "support about this in any event";
+		    print "is in an infinite loop.\n";
+		    print "See if printing fewer copies helps.  Please contact LON-CAPA\n";
+		    print "support about this in any event.";
 		    print "</p>";
 		    kill(9, $pid); # Reaper will do the rest...I hope there's errors in the log.
 		}