diff --git a/lib/emscripten/src/syscalls/unix/host_fs.rs b/lib/emscripten/src/syscalls/unix/host_fs.rs index ab5b37691..ce1894449 100644 --- a/lib/emscripten/src/syscalls/unix/host_fs.rs +++ b/lib/emscripten/src/syscalls/unix/host_fs.rs @@ -425,10 +425,6 @@ pub fn ___syscall142(ctx: &mut Ctx, _which: c_int, mut varargs: VarArgs) -> c_in let readfds_ptr = emscripten_memory_pointer!(ctx.memory(0), readfds) as _; let writefds_ptr = emscripten_memory_pointer!(ctx.memory(0), writefds) as _; let result = unsafe { libc::select(nfds, readfds_ptr, writefds_ptr, 0 as _, 0 as _) }; - debug!( - "set read descriptors AFTER select: {:?}", - set_file_descriptors - ); debug!("select returns {}", result); result } diff --git a/lib/emscripten/src/syscalls/unix/mod.rs b/lib/emscripten/src/syscalls/unix/mod.rs index f5bf5ba53..84257c025 100644 --- a/lib/emscripten/src/syscalls/unix/mod.rs +++ b/lib/emscripten/src/syscalls/unix/mod.rs @@ -205,7 +205,7 @@ pub fn ___syscall196(ctx: &mut Ctx, _which: i32, mut varargs: VarArgs) -> i32 { buf_ptr, result, unsafe { std::ffi::CStr::from_ptr(path).to_str().unwrap() }, - Error::last_os_error(), + std::io::Error::last_os_error(), ); result }