diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2014-05-26 16:09:37 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2014-07-22 23:06:15 +0100 |
commit | a40bc6c8fc409f7ad792d8de33c2d9eb1ca03e58 (patch) | |
tree | 6132e1bd30389df57a1727f2265a5aa925d96318 | |
parent | c007c9748e22d0d518cf254f31504d4a7a4db1ee (diff) |
Ensure timer never set to zero for millisleep. Bug 1426
-rw-r--r-- | src/src/exim.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/src/exim.c b/src/src/exim.c index 517b5435e..6a2336450 100644 --- a/src/src/exim.c +++ b/src/src/exim.c @@ -310,7 +310,8 @@ struct itimerval itval; itval.it_interval.tv_sec = 0; itval.it_interval.tv_usec = 0; itval.it_value.tv_sec = msec/1000; -itval.it_value.tv_usec = (msec % 1000) * 1000; +if ((itval.it_value.tv_usec = (msec % 1000) * 1000) == 0) + itval.it_value.tv_usec = 1; milliwait(&itval); } |