mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-03 04:22:47 -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:
@ -2725,6 +2725,24 @@ void uxsel_input_remove(int id) {
|
||||
gdk_input_remove(id);
|
||||
}
|
||||
|
||||
int frontend_net_pending_error_idle_id;
|
||||
int frontend_got_net_pending_errors = FALSE;
|
||||
gboolean frontend_net_pending_errors(gpointer data)
|
||||
{
|
||||
net_pending_errors();
|
||||
gtk_idle_remove(frontend_net_pending_error_idle_id);
|
||||
frontend_got_net_pending_errors = FALSE;
|
||||
return FALSE;
|
||||
}
|
||||
void frontend_net_error_pending(void)
|
||||
{
|
||||
if (!frontend_got_net_pending_errors) {
|
||||
frontend_got_net_pending_errors = TRUE;
|
||||
frontend_net_pending_error_idle_id =
|
||||
gtk_idle_add(frontend_net_pending_errors, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
void setup_fonts_ucs(struct gui_data *inst)
|
||||
{
|
||||
int shadowbold = conf_get_int(inst->conf, CONF_shadowbold);
|
||||
|
Reference in New Issue
Block a user