diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-11-19 16:57:16 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-11-19 16:57:16 +0000 |
commit | eb0ed1e02f74c1d8de638605575b3655c27871f6 (patch) | |
tree | 1dbebc174dfd298b3c47551c250f7d7e704e481e /mdkapplet | |
parent | 9b5fc7f51ae866b75f7d5134bd883e879c204547 (diff) | |
download | mgaonline-eb0ed1e02f74c1d8de638605575b3655c27871f6.tar mgaonline-eb0ed1e02f74c1d8de638605575b3655c27871f6.tar.gz mgaonline-eb0ed1e02f74c1d8de638605575b3655c27871f6.tar.bz2 mgaonline-eb0ed1e02f74c1d8de638605575b3655c27871f6.tar.xz mgaonline-eb0ed1e02f74c1d8de638605575b3655c27871f6.zip |
(silentCheck) log crashes of mdkapplet checker process
Diffstat (limited to 'mdkapplet')
-rwxr-xr-x | mdkapplet | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -552,7 +552,12 @@ sub silentCheck() { return if $checker_pid; # parent # immediate exit, else forked gtk+ object destructors will badly catch up parent applet - my $_safe = before_leaving { POSIX::_exit(0) }; + my $_safe = before_leaving { + my $err = $@; + log::explanations("mdkapplet check crashed: $err "); + warn "Error: $err\n" . common::backtrace(); + POSIX::_exit(0); + }; # be nice with other processes: setpriority(0, $$, 7); # 0 is PRIO_PROCESS @@ -573,7 +578,7 @@ sub silentCheck() { } checker_exit('locked') if $will_not_update_media; - if (!run_program::run('urpmi.update', (is_it_a_devel_distro() ? '-a' : '--update'), if_($root, "--urpmi-root=$root"))) { + if (!run_program::run('urpmi.update', (is_it_a_devel_distro2() ? '-a' : '--update'), if_($root, "--urpmi-root=$root"))) { checker_exit('error_updating') if $will_not_update_media; } |