summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-11-19 16:57:16 +0000
committerThierry Vignaud <tv@mandriva.org>2009-11-19 16:57:16 +0000
commiteb0ed1e02f74c1d8de638605575b3655c27871f6 (patch)
tree1dbebc174dfd298b3c47551c250f7d7e704e481e /mdkapplet
parent9b5fc7f51ae866b75f7d5134bd883e879c204547 (diff)
downloadmgaonline-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-xmdkapplet9
1 files changed, 7 insertions, 2 deletions
diff --git a/mdkapplet b/mdkapplet
index 2675c646..c4751584 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -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;
}