diff --git a/src/io.rs b/src/io.rs index 8d3f824..3473270 100644 --- a/src/io.rs +++ b/src/io.rs @@ -20,10 +20,19 @@ pub fn get_stream_length(stream: &mut S) -> io::Result { len } +/* + * IO Error Poisoning: + * + * + * Attempt 1: + * + * Wrap C calls w/ `ffi`. Most importantly, execute the `close()` through C. + */ + pub fn load_input() -> anyhow::Result { OpenOptions::new() .read(true) - .custom_flags(libc::O_DIRECT) + //.custom_flags(libc::O_DIRECT) .open(&CONFIG.input) .with_context(|| format!("Failed to open input file: {}", &CONFIG.input.display()))