obsdfreqd: exit gracefully on SIGTERM

This commit is contained in:
Solene Rapenne 2022-03-16 22:45:21 +01:00
parent 7cbce1eb9d
commit 4e5fd1f43b
1 changed files with 2 additions and 1 deletions

3
main.c
View File

@ -172,7 +172,8 @@ int main(int argc, char *argv[]) {
len = sizeof(value);
len_cpu = sizeof(cpu);
signal(SIGINT, quit_gracefully);
signal(SIGINT, quit_gracefully);
signal(SIGTERM, quit_gracefully);
set_policy("manual");
// avoid weird reading for first delta