Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149299436
D55886.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
626 B
Referenced Files
None
Subscribers
None
D55886.diff
View Options
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c
--- a/usr.sbin/syslogd/syslogd.c
+++ b/usr.sbin/syslogd/syslogd.c
@@ -781,15 +781,21 @@
case EVFILT_SIGNAL:
switch (ev.ident) {
case SIGHUP:
+ /* Reload */
init(true);
break;
case SIGINT:
case SIGQUIT:
+ /* Ignore these unless -F and / or -d */
+ if (!Foreground && !Debug)
+ break;
+ /* FALLTHROUGH */
case SIGTERM:
- if (ev.ident == SIGTERM || Debug)
- die(ev.ident);
+ /* Terminate */
+ die(ev.ident);
break;
case SIGALRM:
+ /* Mark and flush */
markit();
break;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 24, 2:19 PM (1 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29850514
Default Alt Text
D55886.diff (626 B)
Attached To
Mode
D55886: syslogd: Allow killing when in foreground
Attached
Detach File
Event Timeline
Log In to Comment