diff options
-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); } |