summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtpd.c
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2009-01-28 19:38:47 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2009-01-28 19:38:47 +0000
commitb77bf55f02ac9f890173d8279c884f5d4b89fd57 (patch)
tree8e2890060141ebec10618c836ce862e932c87a4c /usr.sbin/smtpd/smtpd.c
parentf61d235bbd9708fdbdb841ea2940e853f4ad5ad5 (diff)
when pausing listeners, do not simply disable their events as new
clients would still be able to connect. instead, at pause time we close and remove the listeners, and at resume time we request the parent to reconfigure all listeners. discussed with pyr@
Diffstat (limited to 'usr.sbin/smtpd/smtpd.c')
-rw-r--r--usr.sbin/smtpd/smtpd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/smtpd.c b/usr.sbin/smtpd/smtpd.c
index d4f4cd888ab..3d1d6dab8c5 100644
--- a/usr.sbin/smtpd/smtpd.c
+++ b/usr.sbin/smtpd/smtpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpd.c,v 1.25 2009/01/27 11:42:30 gilles Exp $ */
+/* $OpenBSD: smtpd.c,v 1.26 2009/01/28 19:38:46 gilles Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -410,6 +410,10 @@ parent_dispatch_smtp(int fd, short event, void *p)
break;
switch (imsg.hdr.type) {
+ case IMSG_PARENT_SEND_CONFIG: {
+ parent_send_config(-1, -1, env);
+ break;
+ }
case IMSG_PARENT_AUTHENTICATE: {
struct session_auth_req *req;
struct session_auth_reply reply;