diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2009-05-20 14:29:45 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2009-05-20 14:29:45 +0000 |
commit | bc25feea06c53f00f0d6f4c0cc46d680abef8057 (patch) | |
tree | 867ebdef0a941cf7d60314ae3eb148d7634fa894 /usr.sbin/smtpd/parse.y | |
parent | 4ca8ef671d2dcbf4a29531ed0b75fb9144a8be32 (diff) |
first step towards configuration reload in smtpd, smtpctl reload will parse
the configuration file again and replace current configuration with new one
in all processes. what we don't support yet is graceful restart, clients in
sessions at the moment of the reload will have a temp failure thrown at 'em
which is ok RFC-wise but which we will try to improve anyway.
tested with various setups, "diff reads good" jacekm@
Diffstat (limited to 'usr.sbin/smtpd/parse.y')
-rw-r--r-- | usr.sbin/smtpd/parse.y | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/parse.y b/usr.sbin/smtpd/parse.y index 8d58b555fd9..0a4413fac7c 100644 --- a/usr.sbin/smtpd/parse.y +++ b/usr.sbin/smtpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.32 2009/04/12 16:03:01 gilles Exp $ */ +/* $OpenBSD: parse.y,v 1.33 2009/05/20 14:29:44 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -1588,6 +1588,7 @@ interface(const char *s, const char *cert, struct listenerlist *al, int max, in_ sain->sin_len = sizeof(struct sockaddr_in); sain->sin_port = port; + h->fd = -1; h->port = port; h->flags = flags; h->ssl = NULL; @@ -1608,6 +1609,7 @@ interface(const char *s, const char *cert, struct listenerlist *al, int max, in_ sin6->sin6_len = sizeof(struct sockaddr_in6); sin6->sin6_port = port; + h->fd = -1; h->port = port; h->flags = flags; h->ssl = NULL; |