[gccsdk] killpg function not implemented
John.Tytgat at aaug.net
Wed Mar 2 14:46:20 PST 2011
In message <SNT136-ds18C294CB4183B2093DE83CF0C00 at phx.gbl>
"Alan Buckley" <alan_baa at hotmail.com> wrote:
> Ralph Corderoy wrote:
> > > In the short term is there a workaround I can use to provide the
> > > functionality? I assume I would need to use the kill function and
> > > somehow finding the processes in the same group.
> > Perhaps the implementation of kill(2) has this already? Linux's
> > killpg(2) says
> > On Linux, killpg() is implemented as a library function that makes
> > the call kill(-pgrp, sig).
> > which is how I traditionally think it was done, pre-killpg().
> Thanks for the suggestion, but looking at the gcc code it doesn't
> appear to implement this (though I could be misreading the
I'm not sure what you mean with 'gcc code', you mean glibc ?
killpg() can be easily be implemented in UnixLib but as the 'process group'
concept is minimally supported, killpg() will just be kill(-pgrp, sig).
I'm not sure if that's going sufficent for the program you're trying to
John Tytgat, in his comfy chair at home BASS
John.Tytgat at aaug.net ARM powered, RISC OS driven
More information about the gcc