diff options
author | kn <kn@cvs.openbsd.org> | 2018-11-29 21:10:52 +0000 |
---|---|---|
committer | kn <kn@cvs.openbsd.org> | 2018-11-29 21:10:52 +0000 |
commit | cd9c1cf2a2bcd7ec34ff8769f50f97b707773003 (patch) | |
tree | a03a803f0636e50235d012610ed2aa70f024d163 /usr.sbin | |
parent | f1d3f3a2923a49d67b36104bb5f7f63383f64831 (diff) |
Honor SIGINT/QUIT when running in foreground
Allows stopping `syslogd -F' with ^C.
OK bluhm
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/syslogd/syslogd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 15e1e0fb867..207eea429d0 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: syslogd.c,v 1.256 2018/08/31 19:06:08 bluhm Exp $ */ +/* $OpenBSD: syslogd.c,v 1.257 2018/11/29 21:10:51 kn Exp $ */ /* * Copyright (c) 2014-2017 Alexander Bluhm <bluhm@genua.de> @@ -880,7 +880,7 @@ main(int argc, char *argv[]) signal_add(ev_hup, NULL); signal_add(ev_term, NULL); - if (Debug) { + if (Debug || Foreground) { signal_add(ev_int, NULL); signal_add(ev_quit, NULL); } else { |