summaryrefslogtreecommitdiffstats
path: root/usr.sbin/syslogd/syslogd.h
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2019-07-05 13:23:27 +0000
committerbluhm <bluhm@openbsd.org>2019-07-05 13:23:27 +0000
commit1a7ae0c4addf8152edbd6ee95c31372be3e0d073 (patch)
treefc2c97bf046618d56a9d9d76ac0ea0a9899c38f5 /usr.sbin/syslogd/syslogd.h
parentPut some padding in Perl pack of struct timeval. On armv7 struct (diff)
downloadwireguard-openbsd-1a7ae0c4addf8152edbd6ee95c31372be3e0d073.tar.xz
wireguard-openbsd-1a7ae0c4addf8152edbd6ee95c31372be3e0d073.zip
When syslogd(8) parent process terminates, the file cleanup code
did not work anymore. unveil(2) prevented removal. Cleaning the UNIX domain sockets is not necessary. They are harmless and unlinked before a new bind. So delete that functionality and convert global to local variables. Providing /var/run/syslog.pid is a common feature that should be kept. A stale pid file is confusing. So add a constant path to unveil(2) to allow pid file removal. OK deraadt@
Diffstat (limited to 'usr.sbin/syslogd/syslogd.h')
-rw-r--r--usr.sbin/syslogd/syslogd.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.sbin/syslogd/syslogd.h b/usr.sbin/syslogd/syslogd.h
index 822f22fc6d1..ff3efcf5985 100644
--- a/usr.sbin/syslogd/syslogd.h
+++ b/usr.sbin/syslogd/syslogd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: syslogd.h,v 1.32 2017/10/05 16:15:24 bluhm Exp $ */
+/* $OpenBSD: syslogd.h,v 1.33 2019/07/05 13:23:27 bluhm Exp $ */
/*
* Copyright (c) 2014-2017 Alexander Bluhm <bluhm@genua.de>
@@ -44,11 +44,6 @@ void ttymsg(struct iovec *, int, char *);
void send_fd(int, int);
int receive_fd(int);
-/* The list of domain sockets */
-extern int nunix;
-extern char **path_unix;
-extern char *path_ctlsock;
-
#define ERRBUFSIZE 256
void vlogmsg(int pri, const char *, const char *, va_list);
__dead void die(int);