Reap childs rather than ignoring them.

This commit is contained in:
Marco Pesenti Gritti 2007-11-02 17:05:54 +01:00
parent e1b0f00f0e
commit cc9e561153

View File

@ -91,6 +91,12 @@ def _shell_started_cb():
if os.path.exists(startup_sound): if os.path.exists(startup_sound):
sound.play(startup_sound) sound.play(startup_sound)
def _sigchild_handler(signum, frame):
try:
os.wait()
except OSError:
pass
def main(): def main():
gobject.idle_add(_shell_started_cb) gobject.idle_add(_shell_started_cb)
@ -110,8 +116,7 @@ def main():
win.show_all() win.show_all()
gtk.main() gtk.main()
# FIXME avoid zombie activity processes signal.signal(signal.SIGCHLD, _sigchild_handler)
signal.signal(signal.SIGCHLD, signal.SIG_IGN)
if os.environ.has_key("SUGAR_TP_DEBUG"): if os.environ.has_key("SUGAR_TP_DEBUG"):
# Allow the user time to start up telepathy connection managers # Allow the user time to start up telepathy connection managers