Gentoo Archives: gentoo-dev

From: Pacho Ramos <pacho@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] EasyTAG 2.1.6 Handle SIGCHLD to make audacious archived skins workable
Date: Fri, 04 Mar 2011 15:38:34
Message-Id: 1299253054.8629.7.camel@localhost.localdomain
In Reply to: [gentoo-dev] EasyTAG 2.1.6 Handle SIGCHLD to make audacious archived skins workable by Alessio Ababilov
1 El vie, 04-03-2011 a las 15:44 +0200, Alessio Ababilov escribió:
2 > It seems that development of EasyTAG is stopped, and so I send the patch
3 > to gentoo developers.
4 >
5 > EasyTAG calls signal(SIGCHLD,SIG_IGN) to avoid zombies. It works fine,
6 > but it leads to one problem.
7 > If one calls 'Run Audio Player', the player's SIGCHLD signal handler is
8 > inherited. So, when audacious calls system() in order to unpack its
9 > archived skin, the archiver process ends silently (the wait() call in
10 > system() function cannot hear that the child process has ended). The
11 > audacious process assumes that there was an error and an unarchived skin
12 > is used.
13 > A possible solution is to set a handler for SIGCHLD in EasyTAG. The
14 > handler is called when a child process ends and the latter doesn't
15 > become a zombie.
16 >
17 > Alessio Ababilov
18
19 What about opening a bug report at bugs.gentoo.org?
20
21 Thanks :-)

Attachments

File name MIME type
signature.asc application/pgp-signature