diff options
author | Rickard Green <[email protected]> | 2019-03-18 15:52:36 +0100 |
---|---|---|
committer | Rickard Green <[email protected]> | 2019-03-18 15:53:05 +0100 |
commit | adf61f3cbf1a63d4408cc9cdf831b8935e129876 (patch) | |
tree | 959bc46afaaebee2ed592b5391e162c0bc3f3e7e | |
parent | e645b6b4a5d01406416aa40a0fb822e8993c45bd (diff) | |
download | otp-adf61f3cbf1a63d4408cc9cdf831b8935e129876.tar.gz otp-adf61f3cbf1a63d4408cc9cdf831b8935e129876.tar.bz2 otp-adf61f3cbf1a63d4408cc9cdf831b8935e129876.zip |
Fix timeout value when waiting for emulator start
-rw-r--r-- | lib/erl_interface/src/prog/erl_start.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/erl_interface/src/prog/erl_start.c b/lib/erl_interface/src/prog/erl_start.c index 670a5900c9..c766f4780e 100644 --- a/lib/erl_interface/src/prog/erl_start.c +++ b/lib/erl_interface/src/prog/erl_start.c @@ -657,7 +657,7 @@ static int wait_for_erlang(int sockd, int magic, struct timeval *timeout) gettimeofday(&now,NULL); to.tv_sec = stop_time.tv_sec - now.tv_sec; to.tv_usec = stop_time.tv_usec - now.tv_usec; - while ((to.tv_usec <= 0) && (to.tv_sec >= 0)) { + while ((to.tv_usec < 0) && (to.tv_sec > 0)) { to.tv_usec += 1000000; to.tv_sec--; } |