From 831737f13e8b1bb5594cb1e41496dedbd8d8dd7d Mon Sep 17 00:00:00 2001
From: Robert Scheck <robert-scheck@users.noreply.github.com>
Date: Tue, 20 Oct 2020 07:26:57 +0200
Subject: [PATCH] Exit with a successful return code upon receipt of SIGTERM
(#125)
---
src/ircd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ircd.c b/src/ircd.c
index 6a8b972e4..ec0d81bbe 100644
--- a/src/ircd.c
+++ b/src/ircd.c
@@ -96,7 +96,7 @@ void s_die()
#else
unload_all_modules();
unlink(conf_files ? conf_files->pid_file : IRCD_PIDFILE);
- exit(-1);
+ exit(0);
#endif
}