summaryrefslogtreecommitdiff
path: root/usr.sbin/syslogd
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2015-02-13 21:09:39 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2015-02-13 21:09:39 +0000
commit299a3baa51bbe67538cab7d28b2d80bba1346198 (patch)
treecb0855df0d0a1b02bbf1511e745aca2b9696a80f /usr.sbin/syslogd
parent826bc40010a7d26122f7568cd3dbb3a6db55d160 (diff)
When too many -a requests on the syslogd command line cannot be
fulfilled, it is better to fail hard. Then the user can adjust rc.conf.local or the #define MAXUNIX. OK millert@
Diffstat (limited to 'usr.sbin/syslogd')
-rw-r--r--usr.sbin/syslogd/syslogd.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c
index 591fe2beb8e..79c08f27f56 100644
--- a/usr.sbin/syslogd/syslogd.c
+++ b/usr.sbin/syslogd/syslogd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: syslogd.c,v 1.154 2015/02/12 04:23:17 jsing Exp $ */
+/* $OpenBSD: syslogd.c,v 1.155 2015/02/13 21:09:38 bluhm Exp $ */
/*
* Copyright (c) 1983, 1988, 1993, 1994
@@ -367,11 +367,8 @@ main(int argc, char *argv[])
break;
case 'a':
if (nunix >= MAXUNIX)
- fprintf(stderr, "syslogd: "
- "out of descriptors, ignoring %s\n",
- optarg);
- else
- path_unix[nunix++] = optarg;
+ errx(1, "out of descriptors: %s", optarg);
+ path_unix[nunix++] = optarg;
break;
case 's':
path_ctlsock = optarg;