[gccsdk] killpg function not implemented

Ralph Corderoy ralph at inputplus.co.uk
Wed Mar 2 04:49:44 PST 2011


Hi Alan,

> 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().

Cheers,
Ralph.





More information about the gcc mailing list