summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/scheduler.c
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2021-05-26 18:08:56 +0000
committerEric Faurot <eric@cvs.openbsd.org>2021-05-26 18:08:56 +0000
commitf0f3f7a34d266055284ff12f8a5984f03d28ba35 (patch)
treee420a2702474b93d0480682d57a0994c61017e96 /usr.sbin/smtpd/scheduler.c
parent49a33c1ca9073f58372b039022da15ac4b1f34df (diff)
replaces calls to err(3)/errx(3) with fatal()/fatalx() from log.c
for code that runs in the daemon. ok florian@ millert@
Diffstat (limited to 'usr.sbin/smtpd/scheduler.c')
-rw-r--r--usr.sbin/smtpd/scheduler.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.sbin/smtpd/scheduler.c b/usr.sbin/smtpd/scheduler.c
index b3bda1754b5..80edf9c758c 100644
--- a/usr.sbin/smtpd/scheduler.c
+++ b/usr.sbin/smtpd/scheduler.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scheduler.c,v 1.60 2018/12/30 23:09:58 guenther Exp $ */
+/* $OpenBSD: scheduler.c,v 1.61 2021/05/26 18:08:55 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -27,7 +27,6 @@
#include <ctype.h>
#include <dirent.h>
-#include <err.h>
#include <errno.h>
#include <event.h>
#include <imsg.h>
@@ -400,7 +399,7 @@ scheduler_imsg(struct mproc *p, struct imsg *imsg)
return;
}
- errx(1, "scheduler_imsg: unexpected %s imsg",
+ fatalx("scheduler_imsg: unexpected %s imsg",
imsg_to_str(imsg->hdr.type));
}
@@ -429,7 +428,7 @@ scheduler(void)
backend = scheduler_backend_lookup(backend_scheduler);
if (backend == NULL)
- errx(1, "cannot find scheduler backend \"%s\"",
+ fatalx("cannot find scheduler backend \"%s\"",
backend_scheduler);
purge_config(PURGE_EVERYTHING & ~PURGE_DISPATCHERS);
@@ -471,7 +470,7 @@ scheduler(void)
scheduler_reset_events();
if (pledge("stdio", NULL) == -1)
- err(1, "pledge");
+ fatal("pledge");
event_dispatch();
fatalx("exited event loop");