diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-03-17 22:25:09 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-03-17 22:25:09 +0000 |
commit | 1ae4663b487e31103aac72ff06c02a104d40e907 (patch) | |
tree | ad5b86a35ffc20e5b7482a2eca7d6a71c9473e6e /usr.sbin/hoststated/relay.c | |
parent | a92c0ac2fe007da11296fc93530ee0fd92641197 (diff) |
close unused relay2pfe privsep sockets correctly
Diffstat (limited to 'usr.sbin/hoststated/relay.c')
-rw-r--r-- | usr.sbin/hoststated/relay.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/hoststated/relay.c b/usr.sbin/hoststated/relay.c index 20fb367ad16..2a55985022d 100644 --- a/usr.sbin/hoststated/relay.c +++ b/usr.sbin/hoststated/relay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: relay.c,v 1.20 2007/03/17 22:22:23 reyk Exp $ */ +/* $OpenBSD: relay.c,v 1.21 2007/03/17 22:25:08 reyk Exp $ */ /* * Copyright (c) 2006, 2007 Reyk Floeter <reyk@openbsd.org> @@ -221,7 +221,7 @@ relay(struct hoststated *x_env, int pipe_parent2pfe[2], int pipe_parent2hce[2], for (i = 0; i < env->prefork_relay; i++) { if (i == proc_id) continue; - close(pipe_pfe2relay[i][1]); + close(pipe_pfe2relay[i][0]); close(pipe_pfe2relay[i][1]); } close(pipe_pfe2relay[proc_id][1]); |