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
Message-Id: 4D70ECD4.1050401@gmail.com
1 It seems that development of EasyTAG is stopped, and so I send the patch
2 to gentoo developers.
3
4 EasyTAG calls signal(SIGCHLD,SIG_IGN) to avoid zombies. It works fine,
5 but it leads to one problem.
6 If one calls 'Run Audio Player', the player's SIGCHLD signal handler is
7 inherited. So, when audacious calls system() in order to unpack its
8 archived skin, the archiver process ends silently (the wait() call in
9 system() function cannot hear that the child process has ended). The
10 audacious process assumes that there was an error and an unarchived skin
11 is used.
12 A possible solution is to set a handler for SIGCHLD in EasyTAG. The
13 handler is called when a child process ends and the latter doesn't
14 become a zombie.
15
16 Alessio Ababilov

Attachments

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

Replies