From feab109c61c02ce78cef0c5a4f8d1f9df39de606 Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Sun, 4 Nov 2018 20:46:59 +0300 Subject: [PATCH] mdbx-test: backport - fix osal_actor_poll() for 32-bit builds. Change-Id: I36b2f955295d8ca5435a68737c0c2e7f069bfe34 --- test/osal-unix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/osal-unix.cc b/test/osal-unix.cc index 1856d0f8..6e6d7a1c 100644 --- a/test/osal-unix.cc +++ b/test/osal-unix.cc @@ -184,7 +184,7 @@ void osal_killall_actors(void) { int osal_actor_poll(mdbx_pid_t &pid, unsigned timeout) { struct timespec ts; ts.tv_nsec = 0; - ts.tv_sec = timeout; + ts.tv_sec = (timeout > INT_MAX) ? INT_MAX : timeout; retry: int status, options = WNOHANG; #ifdef WUNTRACED