Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-11-02 16:05:54 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-11-02 16:05:54 (GMT)
commitcc9e561153d0ab6206b516fa38ee789b1f4958a4 (patch)
treef94a64610789d45405690dc914308089ad4a0e4b
parente1b0f00f0eeb614a0c152d6844111b2a115a14fa (diff)
Reap childs rather than ignoring them.
-rwxr-xr-xbin/sugar-shell9
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/sugar-shell b/bin/sugar-shell
index 7b5452d..a20ec27 100755
--- a/bin/sugar-shell
+++ b/bin/sugar-shell
@@ -91,6 +91,12 @@ def _shell_started_cb():
if os.path.exists(startup_sound):
sound.play(startup_sound)
+def _sigchild_handler(signum, frame):
+ try:
+ os.wait()
+ except OSError:
+ pass
+
def main():
gobject.idle_add(_shell_started_cb)
@@ -110,8 +116,7 @@ def main():
win.show_all()
gtk.main()
- # FIXME avoid zombie activity processes
- signal.signal(signal.SIGCHLD, signal.SIG_IGN)
+ signal.signal(signal.SIGCHLD, _sigchild_handler)
if os.environ.has_key("SUGAR_TP_DEBUG"):
# Allow the user time to start up telepathy connection managers