summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2007-02-22 16:17:09 +0000
committerMatt Johnston <matt@ucc.asn.au>2007-02-22 16:17:09 +0000
commit62d792fbdc61fc5c8528a9b7e601e4181e2211be (patch)
treee5b442ed2bb926bb1b1299f19e116536ea77db78
parent7aefd496f165dc173c111ef90a11ab2c8cb4bf01 (diff)
Fix a stupid bug s/readfd/errfd/ affecting channel close on child exit
--HG-- extra : convert_revision : 16dd04147563e91faaa44de193dece0f4056ec7a
-rw-r--r--common-channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common-channel.c b/common-channel.c
index 34316b4..d77a575 100644
--- a/common-channel.c
+++ b/common-channel.c
@@ -296,7 +296,7 @@ static void check_close(struct Channel *channel) {
TRACE(("send data readfd"))
send_msg_channel_data(channel, 0);
}
- if (ERRFD_IS_READ(channel) && channel->readfd >= 0
+ if (ERRFD_IS_READ(channel) && channel->errfd >= 0
&& channel->transwindow > 0) {
TRACE(("send data errfd"))
send_msg_channel_data(channel, 1);