summaryrefslogtreecommitdiffstats
path: root/mgaapplet
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2014-01-08 04:42:00 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2014-01-08 04:42:00 +0100
commit3d84feede672609e1c490af4a6d69c14f07ba7fa (patch)
tree2bd0d538cffa05f7d8967ba8b6b2750cb1e13eb2 /mgaapplet
parenta0670dbe7b8f9f2fe053cc412402485c0857b552 (diff)
downloadmgaonline-3d84feede672609e1c490af4a6d69c14f07ba7fa.tar
mgaonline-3d84feede672609e1c490af4a6d69c14f07ba7fa.tar.gz
mgaonline-3d84feede672609e1c490af4a6d69c14f07ba7fa.tar.bz2
mgaonline-3d84feede672609e1c490af4a6d69c14f07ba7fa.tar.xz
mgaonline-3d84feede672609e1c490af4a6d69c14f07ba7fa.zip
delay setting SIG_CHLD handler (mga#10289)
thus fixing segfault on startup
Diffstat (limited to 'mgaapplet')
-rwxr-xr-xmgaapplet2
1 files changed, 1 insertions, 1 deletions
diff --git a/mgaapplet b/mgaapplet
index 2af525ff..8f928d10 100755
--- a/mgaapplet
+++ b/mgaapplet
@@ -207,6 +207,7 @@ shouldStart() or die "$localfile should be set to TRUE: please use --force or -f
go2State('delayed');
Glib::Timeout->add_seconds($config{FIRST_CHECK_DELAY}/1000, sub {
+ $SIG{CHLD} = \&harvester;
# schedule future checks:
setup_cyclic_check();
# perform a test after initial delay:
@@ -218,7 +219,6 @@ Glib::Timeout->add_seconds($config{FIRST_CHECK_DELAY}/1000, sub {
$SIG{USR1} = 'IGNORE';
$SIG{USR2} = 'IGNORE';
-$SIG{CHLD} = \&harvester;
$SIG{HUP} = \&restart_applet;
run_program::raw({ detach => 1 }, 'ionice', '-p', $$, '-n7');