! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce4-dict are spawning zombies
Status:
CLOSED: FIXED
Product:
Xfce4-dict
Component:
General

Comments

Description Fredrik Carlström 2008-11-14 19:40:23 CET
When making a spell check with aspell, the aspell process is left behind as defunct. I guess this applies also if another spell-check program is used.

Although I don't think this is the proper solution, a simple hack that seams to fix this is to remove G_SPAWN_DO_NOT_REAP_CHILD from the call to g_spawn_async_with_pipes() in the function "dict_spell_start_query" in spell.c.

From the GLib Reference Manual <http://www.gtk.org/api/2.6/glib/glib-Spawning-Processes.html#GSpawnFlags>:
"G_SPAWN_DO_NOT_REAP_CHILD: the child will not be automatically reaped; you must call waitpid() or handle SIGCHLD yourself, or the child will become a zombie."
Comment 1 Enrico Tröger editbugs 2008-11-15 10:22:23 CET
Thanks for reporting.
Should be fixed in SVN.

Removing the G_SPAWN_DO_NOT_REAP_CHILD flag actually was the right solution since we don't need to keep the spawned process. The existance of this flag was more or less a copy&paste error :).

Bug #4615

Reported by:
Fredrik Carlström
Reported on: 2008-11-14
Last modified on: 2010-11-13

People

Assignee:
Enrico Tröger
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information