From 8e6e68ac3a13d2ff7919488b25d7b01d3b19828b Mon Sep 17 00:00:00 2001 From: Jacek Masiulaniec Date: Mon, 16 Feb 2009 12:10:26 +0000 Subject: Process which connects with a pool of cloned processes needs to keep open all pipes going in their direction; ok pyr@ --- usr.sbin/smtpd/config.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'usr.sbin') diff --git a/usr.sbin/smtpd/config.c b/usr.sbin/smtpd/config.c index 19b1ba9bbab..1abb0f70dcc 100644 --- a/usr.sbin/smtpd/config.c +++ b/usr.sbin/smtpd/config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: config.c,v 1.4 2009/02/15 10:32:23 jacekm Exp $ */ +/* $OpenBSD: config.c,v 1.5 2009/02/16 12:10:25 jacekm Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard @@ -172,6 +172,10 @@ config_pipes(struct smtpd *env, struct peer *p, u_int peercount) is_peer(p, j, peercount) && count == env->sc_instance) continue; + if (i == smtpd_process && + is_peer(p, j, peercount) && + env->sc_instances[i] == 1) + continue; close(env->sc_pipes[i][j][count]); env->sc_pipes[i][j][count] = -1; } -- cgit v1.2.3