summaryrefslogtreecommitdiff
path: root/src/util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.cc')
-rw-r--r--src/util.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/util.cc b/src/util.cc
index 37e9f7d0..da94f171 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -61,8 +61,9 @@ int *no_fds = NULL;
/* Paranoia -- No excessive sleeping */
- if (usecs > 4000000L) core("Illegal usleep() call");
-
+ if (usecs > 4000000L) {
+ usecs = 4000000L;
+ }
/* Wait for it */
Timer.tv_sec = (usecs / 1000000L);