priod: systemd unit, configuration

This commit is contained in:
2017-07-05 20:57:56 +02:00
parent 456c362811
commit 1fa6f95135
4 changed files with 30 additions and 4 deletions

View File

@@ -522,6 +522,8 @@ main (int argc, char *argv[])
ctx.proc_event.user_data = &ctx;
poller_fd_set (&ctx.proc_event, POLLIN);
// TODO: iterate through current /proc processes and apply politics
ctx.polling = true;
while (ctx.polling)
poller_run (&ctx.poller);