aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio2014-07-13 21:46:25 +0000
committerWynn Wolf Arbor2020-05-24 12:33:55 +0200
commit5ac25cfbe1d64782e4511d5f2360676004fea308 (patch)
treec92626a82a219d9c8f24475b857c61553a60dc09
parenta042f2ea8835a5f1e6c643d231e5c091e239d28d (diff)
downloadslowcgi-5ac25cfbe1d64782e4511d5f2360676004fea308.tar.gz
Use lerrx instead of errx since the logging subsystem is already initialized. OK florian@
-rw-r--r--slowcgi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/slowcgi.c b/slowcgi.c
index 769df03..7e66d16 100644
--- a/slowcgi.c
+++ b/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;