From d04f3988c3e456788c72f44cf807b4af35d94968 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 21 Dec 2022 18:29:29 +0900 Subject: [PATCH] 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 --- .../libraries/libc-wasi/sandboxed-system-primitives/src/posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/posix.c b/core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/posix.c index 0d44ae7d..d8c57459 100644 --- a/core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/posix.c +++ b/core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/posix.c @@ -2696,7 +2696,7 @@ wasmtime_ssp_poll_oneoff( timeout = ts > INT_MAX ? -1 : (int)ts; } else { - timeout = 1000; + timeout = -1; } int ret = poll(pfds, nsubscriptions, timeout);