summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/delivery_mda.c
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2012-03-07 22:54:50 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2012-03-07 22:54:50 +0000
commitc864e968cfa81b16b0f4b8b62a85e57028862b0e (patch)
treef3dfbb4711d60ac143ef417acd9520304eac55d3 /usr.sbin/smtpd/delivery_mda.c
parent233f9e36ee8d1415283602b90ac8140571855aa6 (diff)
various reliability fixes:
- prevent queue_fsqueue from fatal() when it hits an ENOENT, it can happen - change a bit the scheduler API to simplify it, fix runner accordingly - we can't remove msg/batch from ramqueue while envelope is offloaded or it will cause a double, instead we add refcnt to both msg/batch and only free them when it hits 0
Diffstat (limited to 'usr.sbin/smtpd/delivery_mda.c')
-rw-r--r--usr.sbin/smtpd/delivery_mda.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/delivery_mda.c b/usr.sbin/smtpd/delivery_mda.c
index 47a85b558c6..03107605c10 100644
--- a/usr.sbin/smtpd/delivery_mda.c
+++ b/usr.sbin/smtpd/delivery_mda.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: delivery_mda.c,v 1.2 2012/02/04 17:11:45 chl Exp $ */
+/* $OpenBSD: delivery_mda.c,v 1.3 2012/03/07 22:54:49 gilles Exp $ */
/*
* Copyright (c) 2011 Gilles Chehade <gilles@openbsd.org>
@@ -22,6 +22,7 @@
#include <sys/param.h>
#include <sys/socket.h>
+#include <db.h>
#include <ctype.h>
#include <err.h>
#include <event.h>