diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2017-04-05 00:35:03 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2017-04-05 00:35:03 +0000 |
commit | d3ff0a8c2d55c6581733b2eaa12ef175f98708b1 (patch) | |
tree | e76962a089de8bf1a95f0d2d312a2def9a0442d4 /usr.sbin/syslogd | |
parent | f7393e6cb454e4d5ac4e463861261d3841d0500d (diff) |
Do not print a warning if closing the control socket fails. It
cannot happen and there is nothing that could be done about it.
OK deraadt@
Diffstat (limited to 'usr.sbin/syslogd')
-rw-r--r-- | usr.sbin/syslogd/syslogd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 1e1bfc6fff8..bfc7443b282 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: syslogd.c,v 1.233 2017/03/28 00:04:43 jsg Exp $ */ +/* $OpenBSD: syslogd.c,v 1.234 2017/04/05 00:35:02 bluhm Exp $ */ /* * Copyright (c) 1983, 1988, 1993, 1994 @@ -3085,8 +3085,7 @@ ctlconn_cleanup(void) { struct filed *f; - if (close(fd_ctlconn) == -1) - logerror("close ctlconn"); + close(fd_ctlconn); fd_ctlconn = -1; event_del(ev_ctlread); event_del(ev_ctlwrite); |