get rid of some very annoying and pointless noise
authorjeff <jeff>
Mon, 15 Feb 2010 14:41:35 +0000 (14:41 +0000)
committerjeff <jeff>
Mon, 15 Feb 2010 14:41:35 +0000 (14:41 +0000)
htetc/handler.pl

index 952d620..e2289a9 100644 (file)
@@ -76,8 +76,11 @@ sub handler
       RT::Init() if $RT::VERSION; #for lack of something else
 
       #we don't want the RT error handlers under FS
-      undef $SIG{__WARN__} if defined($SIG{__WARN__});
-      undef $SIG{__DIE__}  if defined($SIG{__DIE__} );
+      {
+        local $^W=0;
+        undef $SIG{__WARN__} if defined($SIG{__WARN__});
+        undef $SIG{__DIE__}  if defined($SIG{__DIE__} );
+      }
 
       $ah->interp($fs_interp);