Fix a stupid bug s/readfd/errfd/ affecting channel close on child exit

--HG--
extra : convert_revision : 16dd04147563e91faaa44de193dece0f4056ec7a
This commit is contained in:
Matt Johnston 2007-02-22 16:17:09 +00:00
parent 7aefd496f1
commit 62d792fbdc

View File

@ -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);