/* Prepare host I/O slot for operating in main protocol phase */ void host_activate(void) { if (s_host_slot == NULL) { /* Just activate */ host_really_activate(cur_slot); } else { /* Let close hook do the work */ s_new_slot = cur_slot; aio_close_other(s_host_slot, 0); } }
void aio_close(int fatal_f) { aio_close_other(cur_slot, fatal_f); }