From e708e02698ee9a8c0333c869a3160589e14de175 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 23 Sep 2008 21:26:42 +0000 Subject: enable to disable it trough the DISABLE_DRAKBUG environment variable --- perl-install/standalone.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'perl-install/standalone.pm') diff --git a/perl-install/standalone.pm b/perl-install/standalone.pm index 994ff7edc..d9dae154e 100644 --- a/perl-install/standalone.pm +++ b/perl-install/standalone.pm @@ -217,8 +217,10 @@ sub bug_handler { c::_exit(1); } -$SIG{SEGV} = sub { bug_handler(@_, 1) }; -$SIG{__DIE__} = \&bug_handler; +if (!$ENV{DISABLE_DRAKBUG}) { + $SIG{SEGV} = sub { bug_handler(@_, 1) }; + $SIG{__DIE__} = \&bug_handler; +} sub import() { ($standalone_name = $0) =~ s|.*/||; -- cgit v1.2.1