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:
@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user