Hacker News new | ask | show | jobs
by grapeli23 2833 days ago
The cgroup freezer is much better (reliable).

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...

2 comments

In what way its more reliable?

It works only on Linux.

Mine approach works on Linux/FreeBSD/OpenBSD/Illumos/Solaris/UNIX/...

More reliable not more available. It's because programs in userspace can mess with the signal usage, while they can't with the cgroup feezing.
Sounds interesting, and I've created a note to look into this for my recipe that I use with awesomeWM (https://github.com/awesomeWM/awesome-www/pull/111/files).

However at first glance it is much more difficult to setup (cgroups permissions, creating task groups etc). I wonder if there is a wrapper that would behave more like "kill -STOP" already?