mdbx-test: fix osal_actor_poll() for 32-bit builds.

Change-Id: I36b2f955295d8ca5435a68737c0c2e7f069bfe34
This commit is contained in:
Leo Yuriev 2018-11-04 20:46:59 +03:00 committed by Leonid Yuriev
parent c3432c158e
commit 73c7742db4

View File

@ -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