static SELECT_RESPONSE_t exec_closed_callback(void *group, int socket, void *d) { driver_exec_t *driver = (driver_exec_t*) d; message_post_close_session(driver->session_id); return SELECT_CLOSE_REMOVE; }
static SELECT_RESPONSE_t client_closed(void *group, int socket, void *c) { client_entry_t *client = (client_entry_t*) c; message_post_close_session(client->session_id); /* TODO: Unlink it from the entry list. */ return SELECT_CLOSE_REMOVE; }