Re: clone - CLONE_THREAD and CLONE_SIGHAND without CLONE_VM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi...

On Thu, Apr 10, 2008 at 8:47 PM, black hole <neyrith@xxxxxxxxx> 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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux