From df0d10b9c9e5f9b43ef96f973ba878f768e4b3a9 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 1 Aug 2007 19:58:28 +0000 Subject: report ordinary crash (unhandled exceptions, not seg faults) on bugzilla too --- perl-install/NEWS | 2 ++ perl-install/standalone.pm | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/NEWS b/perl-install/NEWS index a8ebf495b..963d7809c 100644 --- a/perl-install/NEWS +++ b/perl-install/NEWS @@ -1,3 +1,5 @@ +- report ordinary crash (unhandled exceptions, not seg faults) on bugzilla too + Version 10.4.151 - 01 August 2007, by Thierry Vignaud - bootloader-config: handle vmdefault and vmdisable lilo.conf options (#26456) diff --git a/perl-install/standalone.pm b/perl-install/standalone.pm index b611d784a..7e94d8ba9 100644 --- a/perl-install/standalone.pm +++ b/perl-install/standalone.pm @@ -184,7 +184,13 @@ our @common_functs = qw(renamef linkf symlinkf output substInFile mkdir_p rm_rf our @builtin_functs = qw(chmod chown __exit exit unlink link symlink rename system); our @drakx_modules = qw(Xconfig::card Xconfig::default Xconfig::main Xconfig::monitor Xconfig::parse Xconfig::proprietary Xconfig::resolution_and_depth Xconfig::screen Xconfig::test Xconfig::various Xconfig::xfree any bootloader bootlook c commands crypto detect_devices devices diskdrake diskdrake::hd_gtk diskdrake::interactive diskdrake::removable diskdrake::removable_gtk diskdrake::smbnfs_gtk fs fsedit http keyboard lang log loopback lvm modules::parameters modules mouse my_gtk network network::adsl network::ethernet network::connection network::isdn_consts network::isdn network::modem network::netconnect network::network fs::remote::nfs fs::remote::smb network::tools partition_table partition_table_bsd partition_table::dos partition_table::empty partition_table::gpt partition_table::mac partition_table::raw partition_table::sun printer printerdrake proxy raid run_program scanner services steps swap timezone network::drakfirewall network::shorewall); -$SIG{SEGV} = sub { my $progname = $0; $progname =~ s|.*/||; exec("drakbug --incident $progname") }; +sub bug_handler() { + my $progname = $0; + $progname =~ s|.*/||; + exec("drakbug --incident $progname") +} +$SIG{SEGV} = \&bug_handler; +$SIG{__DIE__} = \&bug_handler; sub import() { ($standalone_name = $0) =~ s|.*/||; -- cgit v1.2.1