[1115] in NetBSD-Development
syslogd.c patched
daemon@ATHENA.MIT.EDU (Jonathon Weiss)
Mon Nov 13 21:37:33 1995
From: Jonathon Weiss <jweiss@MIT.EDU>
To: netbsd-dev@MIT.EDU, linux-dev@MIT.EDU
Date: Mon, 13 Nov 1995 21:37:02 EST
I applied the following patch to syslogd.c in zephyr/clients/syslogd
in the sipb-athena tree. It appears to be applied but not checked in,
in the zephyr locker. (or else I got lost because I'm unfamiliar with
CVS). Anyhow it should prevent syslogd from coredumping on certain
signals, and cause a sigterm to actually kill it. I have not actually
rebuilt it for anything.
Jonathon
*** /tmp/syslogd.c Mon Nov 13 21:27:47 1995
--- ./syslogd.c Fri Sep 22 22:05:13 1995
***************
*** 383,391 ****
action.sa_flags = 0;
sigemptyset(&action.sa_mask);
! action.sa_handler = Debug ? die : SIG_IGN;
sigaction(SIGTERM, &action, NULL);
sigaction(SIGINT, &action, NULL);
action.sa_handler = reapchild;
sigaction(SIGCHLD, &action, NULL);
--- 383,394 ----
action.sa_flags = 0;
sigemptyset(&action.sa_mask);
! action.sa_handler = die;
sigaction(SIGTERM, &action, NULL);
+
+ action.sa_handler = Debug ? die : SIG_IGN;
sigaction(SIGINT, &action, NULL);
+ sigaction(SIGQUIT, &action, NULL);
action.sa_handler = reapchild;
sigaction(SIGCHLD, &action, NULL);