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

index 38af4cc..af7ac7d 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);