[LON-CAPA-cvs] cvs: loncom /xml run.pm

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 16 Mar 2006 15:47:37 -0000


albertel		Thu Mar 16 10:47:37 2006 EDT

  Modified files:              
    /loncom/xml	run.pm 
  Log:
  - bug #4702
  
  
Index: loncom/xml/run.pm
diff -u loncom/xml/run.pm:1.57 loncom/xml/run.pm:1.58
--- loncom/xml/run.pm:1.57	Mon Feb 20 18:52:20 2006
+++ loncom/xml/run.pm	Thu Mar 16 10:47:37 2006
@@ -1,6 +1,6 @@
 package Apache::run;
 #
-# $Id: run.pm,v 1.57 2006/02/20 23:52:20 albertel Exp $
+# $Id: run.pm,v 1.58 2006/03/16 15:47:37 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -78,7 +78,7 @@
     my $result = '';
     $@='';
     $Apache::run::timeout=0;
-    $main::SIG{'ALRM'} = sub {
+    local $main::SIG{'ALRM'} = sub {
 	$Apache::run::timeout=1;
 	die("timeout");
     };
@@ -116,7 +116,7 @@
     my @result;
     $@='';
     $Apache::run::timeout=0;
-    $main::SIG{'ALRM'} = sub {
+    local $main::SIG{'ALRM'} = sub {
 	$Apache::run::timeout=1;
 	die("timeout");
     };