commit e52fb13ee2f31b50bd5c07b4a95828f49cfe26af parent 1c463eb40559cc28dbcc582616834caaa735b649 Author: Louis Burda <quent.burda@gmail.com> Date: Thu, 31 Mar 2022 20:41:11 +0200 Call cleanup on SIGKILL and SIGTERM Diffstat:
M | src/main.c | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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