summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2022-03-31 20:41:11 +0200
committerLouis Burda <quent.burda@gmail.com>2022-03-31 20:41:11 +0200
commite52fb13ee2f31b50bd5c07b4a95828f49cfe26af (patch)
tree8b76eee8487081480c34f8addd42270bfa383223 /src
parent1c463eb40559cc28dbcc582616834caaa735b649 (diff)
downloadtmus-e52fb13ee2f31b50bd5c07b4a95828f49cfe26af.tar.gz
tmus-e52fb13ee2f31b50bd5c07b4a95828f49cfe26af.zip
Call cleanup on SIGKILL and SIGTERM
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index f91c9ac..dbb76ae 100644
--- a/src/main.c
+++ b/src/main.c
@@ -27,6 +27,8 @@ init(void)
on_exit(cleanup, NULL);
signal(SIGINT, exit);
+ signal(SIGTERM, exit);
+ signal(SIGKILL, exit);
}
void