Skip to content

Instantly share code, notes, and snippets.

@methodmissing
Created September 8, 2009 23:30
Show Gist options
  • Select an option

  • Save methodmissing/183333 to your computer and use it in GitHub Desktop.

Select an option

Save methodmissing/183333 to your computer and use it in GitHub Desktop.
/*
* Helper to ensure files opened via AIO.lio_listio is closed.
*/
static void
rb_io_closes( VALUE cbs ){
int io;
for (io=0; io < RARRAY_LEN(cbs); io++) {
control_block_close( RARRAY_PTR(cbs)[io] );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment