From cc9e561153d0ab6206b516fa38ee789b1f4958a4 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 02 Nov 2007 16:05:54 +0000 Subject: Reap childs rather than ignoring them. --- (limited to 'bin') 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 -- cgit v0.9.1