version 1.26, 2009/10/11 10:39:27 |
version 1.27, 2009/11/04 23:12:43 |
|
|
return; |
return; |
log_debug("writing %d to client %d", type, c->ibuf.fd); |
log_debug("writing %d to client %d", type, c->ibuf.fd); |
imsg_compose(ibuf, type, PROTOCOL_VERSION, -1, -1, (void *) buf, len); |
imsg_compose(ibuf, type, PROTOCOL_VERSION, -1, -1, (void *) buf, len); |
|
server_update_event(c); |
} |
} |
|
|
void |
void |
|
|
c->tty.flags &= ~(TTY_FREEZE|TTY_NOCURSOR); |
c->tty.flags &= ~(TTY_FREEZE|TTY_NOCURSOR); |
server_redraw_client(c); |
server_redraw_client(c); |
} |
} |
|
} |
|
|
|
void |
|
server_update_event(struct client *c) |
|
{ |
|
short events; |
|
|
|
events = 0; |
|
if (!(c->flags & CLIENT_BAD)) |
|
events |= EV_READ; |
|
if (c->ibuf.w.queued > 0) |
|
events |= EV_WRITE; |
|
event_del(&c->event); |
|
event_set(&c->event, c->ibuf.fd, events, server_client_callback, c); |
|
event_add(&c->event, NULL); |
} |
} |