From dfc46f2376dcbe8a887443563b067e542e79baad Mon Sep 17 00:00:00 2001 From: Eric Faurot Date: Thu, 12 Jan 2012 18:06:19 +0000 Subject: Remove dead code for config reloading for now. It is not functionnal and confusing. ok gilles@ --- usr.sbin/smtpd/control.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'usr.sbin/smtpd/control.c') 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 @@ -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)); } -- cgit v1.2.3