libc-wasi: Fix spurious poll timeout (#1824)

This reverts the "Fix libc-wasi poll_oneoff hang issue" change.
https://github.com/bytecodealliance/wasm-micro-runtime/pull/1300
This commit is contained in:
YAMAMOTO Takashi 2022-12-21 18:29:29 +09:00 committed by GitHub
parent 14288f59b0
commit d04f3988c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2696,7 +2696,7 @@ wasmtime_ssp_poll_oneoff(
timeout = ts > INT_MAX ? -1 : (int)ts; timeout = ts > INT_MAX ? -1 : (int)ts;
} }
else { else {
timeout = 1000; timeout = -1;
} }
int ret = poll(pfds, nsubscriptions, timeout); int ret = poll(pfds, nsubscriptions, timeout);