> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Bruno > Tavares > Sent: Monday, 16 August 2004 8:33 PM > To: [EMAIL PROTECTED] > Subject: Re: [Freevo-devel] Re: utils.popen3 and mmpython > > > On Mon, 2004-08-16 at 12:50, Dirk Meyer wrote: > > > Now you got me. What are process groups? My knowledge says: when a > > child dies, the kernel sends SIGCHILD to the parent. The parent than > > should 'wait' for it to remove the zombie process. If a process dies, > > all children are now children of process 1 (init). So how can you get > > information when a child of your child dies? Only your child gets > > this. > Your knoledge is correct unless you set a process group (also called > group with a process leader). > > Quoting unix man page: > "Process groups are used for distribution of signals "... > "If a session has a controlling terminal, CLOCAL is not set and a hangup > occurs, then the session leader is sent a SIGHUP. If the session > leader exits, the SIGHUP signal will be sent to each process in the > foreground process group of the controlling terminal." > > So, all Freevo has to do is to set a process group being the process > leader the helper child spwaned. > Everything else is done by unix core libs (or kernel, don't really > know). So, with this method, Freevo doesn't even have to know about > existing subchilds. > Something here is broken for me (for transcode).. Sending SIG_ANYTHING to the process leader after making the recomended changes... (in util.popen3) doesn't kill all childs.. I can only think now I must hack my way around this...
Bruno, in cd_burn, cleanup() calls kill on -pid not pid. Maybe this will fix my problem.. ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel
