summaryrefslogtreecommitdiffstats
path: root/usr.sbin/slowcgi
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2014-07-13 21:46:25 +0000
committerclaudio <claudio@openbsd.org>2014-07-13 21:46:25 +0000
commit6af1d02fb55d9cb651f34c9f02de8457812019c7 (patch)
treeca89d63ea0a05c696cb66e9bdfb0a5f39d93857f /usr.sbin/slowcgi
parentFix sched_stop_secondary_cpus() to properly drain CPUs (diff)
downloadwireguard-openbsd-6af1d02fb55d9cb651f34c9f02de8457812019c7.tar.xz
wireguard-openbsd-6af1d02fb55d9cb651f34c9f02de8457812019c7.zip
Use lerrx instead of errx since the logging subsystem is already initialized.
OK florian@
Diffstat (limited to 'usr.sbin/slowcgi')
-rw-r--r--usr.sbin/slowcgi/slowcgi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/slowcgi/slowcgi.c b/usr.sbin/slowcgi/slowcgi.c
index 769df0361b5..7e66d16bc4f 100644
--- a/usr.sbin/slowcgi/slowcgi.c
+++ b/usr.sbin/slowcgi/slowcgi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: slowcgi.c,v 1.33 2014/06/10 14:38:27 florian Exp $ */
+/* $OpenBSD: slowcgi.c,v 1.34 2014/07/13 21:46:25 claudio Exp $ */
/*
* Copyright (c) 2013 David Gwynne <dlg@openbsd.org>
* Copyright (c) 2013 Florian Obser <florian@openbsd.org>
@@ -311,14 +311,14 @@ main(int argc, char *argv[])
pw = getpwnam(SLOWCGI_USER);
if (pw == NULL)
- errx(1, "no %s user", SLOWCGI_USER);
+ lerrx(1, "no %s user", SLOWCGI_USER);
slowcgi_listen(fcgi_socket, pw);
lwarnx("slowcgi_user: %s", slowcgi_user);
pw = getpwnam(slowcgi_user);
if (pw == NULL)
- errx(1, "no %s user", slowcgi_user);
+ lerrx(1, "no %s user", slowcgi_user);
if (chrootpath == NULL)
chrootpath = pw->pw_dir;