commit d1bda986e611c9ca93670ffa2d10aae178fb2067
parent c5dfedcbd82163391ed046caa3b2764562b0c1cf
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 12 Aug 2023 20:23:28 +0200
SIGKILL cannot be handled
"The signals SIGKILL and SIGSTOP cannot be caught or ignored."
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat:
1 file changed, 0 insertions(+), 2 deletions(-)
diff --git a/main.c b/main.c
@@ -464,7 +464,6 @@ sighandler(int sig)
case SIGQUIT:
case SIGABRT:
case SIGTERM:
- case SIGKILL:
if (dosyslog) {
closelog();
} else if (logfile != NULL && glfd != -1) {
@@ -493,7 +492,6 @@ initsignals(void)
signal(SIGQUIT, sighandler);
signal(SIGABRT, sighandler);
signal(SIGTERM, sighandler);
- signal(SIGKILL, sighandler);
signal(SIGPIPE, SIG_IGN);
}