Created
September 8, 2009 23:30
-
-
Save methodmissing/183333 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * 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