Commit 62d792fb authored by Matt Johnston's avatar Matt Johnston
Browse files

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

--HG--
extra : convert_revision : 16dd04147563e91faaa44de193dece0f4056ec7a
parent 7aefd496
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment