summaryrefslogtreecommitdiffstats
path: root/usr.sbin/smtpd/queue.c
diff options
context:
space:
mode:
authoreric <eric@openbsd.org>2014-07-08 15:45:32 +0000
committereric <eric@openbsd.org>2014-07-08 15:45:32 +0000
commit98f67d1688f1b9fc1ab749b00f67fbe7f50e49a3 (patch)
treef8a8e9f7be599fee14e2d5170c13cfc872a38163 /usr.sbin/smtpd/queue.c
parentremove dead code. these imsgs are handled in pony.c. (diff)
downloadwireguard-openbsd-98f67d1688f1b9fc1ab749b00f67fbe7f50e49a3.tar.xz
wireguard-openbsd-98f67d1688f1b9fc1ab749b00f67fbe7f50e49a3.zip
various queue improvements:
- add a "close" hook to the backend API. - improve the sync() pattern in queue_fs: only sync at commit time and not for every envelope creation - various fixes to the experimental external queue API.
Diffstat (limited to 'usr.sbin/smtpd/queue.c')
-rw-r--r--usr.sbin/smtpd/queue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/queue.c b/usr.sbin/smtpd/queue.c
index 5f68ad86f86..4e26fe600c3 100644
--- a/usr.sbin/smtpd/queue.c
+++ b/usr.sbin/smtpd/queue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: queue.c,v 1.162 2014/04/19 13:40:24 gilles Exp $ */
+/* $OpenBSD: queue.c,v 1.163 2014/07/08 15:45:32 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -561,6 +561,7 @@ static void
queue_shutdown(void)
{
log_info("info: queue handler exiting");
+ queue_close();
_exit(0);
}