summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/control.c
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2012-01-12 18:06:19 +0000
committerEric Faurot <eric@cvs.openbsd.org>2012-01-12 18:06:19 +0000
commitdfc46f2376dcbe8a887443563b067e542e79baad (patch)
treee76a6108d52d67554c599e2e972c8355148764e6 /usr.sbin/smtpd/control.c
parent96e667daee9c7670dcffee9f9493897c95a7e88a (diff)
Remove dead code for config reloading for now. It is not functionnal
and confusing. ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/control.c')
-rw-r--r--usr.sbin/smtpd/control.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/usr.sbin/smtpd/control.c b/usr.sbin/smtpd/control.c
index 632c459b8f2..ace689b4e11 100644
--- a/usr.sbin/smtpd/control.c
+++ b/usr.sbin/smtpd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.63 2011/11/14 19:23:41 chl Exp $ */
+/* $OpenBSD: control.c,v 1.64 2012/01/12 18:06:18 eric Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -65,7 +65,6 @@ void
control_imsg(struct imsgev *iev, struct imsg *imsg)
{
struct ctl_conn *c;
- struct reload *reload;
log_imsg(PROC_CONTROL, iev->proc, imsg);
@@ -81,21 +80,6 @@ control_imsg(struct imsgev *iev, struct imsg *imsg)
}
}
- if (iev->proc == PROC_PARENT) {
- switch (imsg->hdr.type) {
- case IMSG_CONF_RELOAD:
- env->sc_flags &= ~SMTPD_CONFIGURING;
- reload = imsg->data;
- c = control_connbyfd(reload->fd);
- if (c == NULL)
- return;
- imsg_compose_event(&c->iev,
- reload->ret ? IMSG_CTL_OK : IMSG_CTL_FAIL, 0, 0,
- -1, NULL, 0);
- return;
- }
- }
-
errx(1, "control_imsg: unexpected %s imsg",
imsg_to_str(imsg->hdr.type));
}