summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--NEWS3
-rwxr-xr-xmgaapplet2
2 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 1b482138..6432847c 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- delay setting SIG_CHLD handler
+ (thus fixing segfault on startup (mga#10289))
+
Version 3.4 - 30 December 2013, Thierry Vignaud
- mdkapplet-config (mga#12148)
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');