Hi...

On Thu, Apr 10, 2008 at 8:47 PM, black hole <[EMAIL PROTECTED]> wrote:
> Hi,
>
>  I want to solve the following situation in a better way than
>  it is currently solved. I have come into a conclusion that
>  the proper solution might actually involve kernel patch.
>  I would like to discuss it here.
>
>  Situation:
>  I spawn several processes. I want this group of processes
>  to terminate when any one of them terminates (dies,
>  or just exits).
>
>  A few of these processes are third party binaries.
>  That programmatically only leaves me with the signal API

Hmmm, sure you have to do it via kernel space? why not just create a
script that parse "ps" or "top" output for the PIDs and send all of
these processes SIGKILL or SIGTERMs?

strace...or maybe systemtap, could also be useful here. Trap do_fork()
or exec()...check the command name and collect the PIDs...  the
details are left for your exercise :)

regards,

Mulyadi.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to