1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 19:12:48 -05:00

Arrange to call net_pending_errors on Unix, which we've never actually

remembered to do before! Also some related fixes, such as that after
we do so we should immediately stop selecting on the socket in
question.

[originally from svn r9363]
This commit is contained in:
Simon Tatham
2011-12-08 19:15:57 +00:00
parent 8aa218e894
commit f892af999e
6 changed files with 62 additions and 9 deletions

View File

@ -585,6 +585,8 @@ static void version(void)
exit(1);
}
void frontend_net_error_pending(void) {}
int main(int argc, char **argv)
{
int sending;
@ -1107,6 +1109,8 @@ int main(int argc, char **argv)
back->unthrottle(backhandle, try_output(TRUE));
}
net_pending_errors();
if ((!connopen || !back->connected(backhandle)) &&
bufchain_size(&stdout_data) == 0 &&
bufchain_size(&stderr_data) == 0)