diff --git a/src/daemon.c b/src/daemon.c index 0ec8ead..87970c0 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -17,6 +17,7 @@ */ +#include #include #include #include @@ -147,6 +148,11 @@ void go_daemon(void (*fan_control)()) openlog(PROGRAM_NAME, LOG_CONS, LOG_USER); } + // configure timer slack + int err = prctl(PR_SET_TIMERSLACK, 1000 * 1000 * 1000, 0, 0, 0); + if (err == -1) { + perror("prctl"); + } pid_t pid_slave; pid_t sid_slave;