Implementing a control group manager that isn't a persistent daemon

Demi Marie Obenour <[email protected]>
Newsgroups org.kernel.vger.cgroups
Message-ID <[email protected]>
Hello!

I'm currently implementing a control group manager that isn't a
persistent daemon.  Instead, it's a command-line tool.  The system
I'm working on uses s6 instead of systemd, and s6 doesn't have native
control group support.

The current plan is to offer a few options:

1. Create a cgroup if it doesn't exist.  If it does, wait for it to
   be empty.  Then execute a program in that cgroup.

2. Create a program in a cgroup, without waiting for the cgroup to
   be empty.
   
2. Kill all programs in a cgroup.

Unfortunately, I'm not able to wait for a cgroup to become empty.
I don't seem to be getting EPOLLPRI or EPOLLERR events.  What
is the proper way to get those events?  Is there a kernel version
with a bug in this area?
-- 
Sincerely,
Demi Marie Obenour (she/her/hers)
OpenPGP_signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEopQtqVJW1aeuo9/sszaHOrMp8lMFAmpUGlEACgkQszaHOrMp
8lNVkg//Xa8KQvJB6oSh/K1Ww3HmTYayegRNxDvQ+itoW4X7RUgIZHLHvouh1e1f
Uyjqit/C9hyjQxqY6LV2ZjLP/q1MtINjYqXmTzDvfopKLMPEd17xTHBMJg9o9VqI
7/jPb2E7/bWlX45SHU0EWWewZ8iMX16euLqT0pz1C2LmTYwjyCcP6X+hRFbJcTIy
EA4sa8O5fe/485yFIG000GKRW/QGAirkG+eHAGYd/El83/k4Rzlv9QhQHZ9xhMkY
98sZEAqUssouWLfseJMedMQWjqOAghiRs09NJz8D0oEdmrlsI/zR85CosFAuLOy3
GFhuRZ1zur5LCe4mLRx06XNHpqBrrXUWg167bDeL7c6y0TpuWFPeJJLMe8x8ifuH
wI3mhCNJ9/jA78q65FplztWPbe/455+ISauhReq940VQnwL9akfzqkRePPac8/df
w+G6uuJExu5bD7+X9h87omqhmRUIdJB7TVfIUElOYOEILS/odsTo1BRgiWtr9JZo
geS4/Soa8K2jJ8pexTaBWJ6UCTb4bbDrm5pqn9i1PYJsF7rGRI/Nu2Z6pFLX0xCN
tMBQ4/efND+cHMWeNGzcXsyXZFcDpL1pjHI8XVyvM5T6pDZXueA5NwwnCuQ47SAl
irplYPW+c+JVqKu8z8TX3oa+QfXlR0sj/cgzXKf4XkCxDsjm/+k=
=z63Z
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.