summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-23 21:26:42 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-23 21:26:42 +0000
commite708e02698ee9a8c0333c869a3160589e14de175 (patch)
tree0330b8ea6362a946b9df4c5dc4c1332fe9803693 /perl-install
parent6c85915744f3a63f7f72cebdd7fe0addf38badf6 (diff)
downloaddrakx-e708e02698ee9a8c0333c869a3160589e14de175.tar
drakx-e708e02698ee9a8c0333c869a3160589e14de175.tar.gz
drakx-e708e02698ee9a8c0333c869a3160589e14de175.tar.bz2
drakx-e708e02698ee9a8c0333c869a3160589e14de175.tar.xz
drakx-e708e02698ee9a8c0333c869a3160589e14de175.zip
enable to disable it trough the DISABLE_DRAKBUG environment variable
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/NEWS1
-rw-r--r--perl-install/standalone.pm6
2 files changed, 5 insertions, 2 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 93a927ae3..988d2a601 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,4 +1,5 @@
- drakbug:
+ o enable to disable it trough the DISABLE_DRAKBUG environment variable
o fix sizing some labels (workarounding infamous 6 years old gnome
bug #101968)
- harddrake: auto-configure floppies
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|.*/||;