Gentoo Archives: gentoo-dev

From: Alessio Ababilov <ilovegnulinux@×××××.com>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] EasyTAG 2.1.6 Handle SIGCHLD to make audacious archived skins workable
Date: Fri, 04 Mar 2011 14:02:55
It seems that development of EasyTAG is stopped, and so I send the patch 
to gentoo developers.

EasyTAG calls signal(SIGCHLD,SIG_IGN) to avoid zombies. It works fine,
but it leads to one problem.
If one calls 'Run Audio Player', the player's SIGCHLD signal handler is
inherited. So, when audacious calls system() in order to unpack its
archived skin, the archiver process ends silently (the wait() call in
system() function cannot hear that the child process has ended). The
audacious process assumes that there was an error and an unarchived skin
is used.
A possible solution is to set a handler for SIGCHLD in EasyTAG. The
handler is called when a child process ends and the latter doesn't
become a zombie.

Alessio Ababilov


File name MIME type
easytag-2.1.6.patch text/plain
easytag-2.1.6-r5.ebuild text/plain