On Oct 29, 2011 4:58 PM, "Tom Gundersen" <tomegun@archlinux.org> wrote:
>
> In principle, I'm worried that, with the right ammonut of bad luck,
> we could fork off some process at exactly the wrong time which escapes
> the killall logic.
>
> This, by the way, highlights the frailty of the killall stuff.
Why not make use of the `name` cgroup in same way systemd does? Then you can simply:
kill $(</path/to/cgroup/tasks)
... in a loop for a couple iterations as needed.
C Anthony