diff options
author | Bardur Arantsson <bardur@scientician.net> | 2014-12-15 20:55:24 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2014-12-15 20:55:24 +0100 |
commit | 63dc88888692fbeddb4c0a2ec99af3cd708276eb (patch) | |
tree | 816e380c679b79f421419c89af154a234a6ee48a /src/util.cc | |
parent | 87e166812794559b13741c70e1de5d3280a3ff17 (diff) |
Remove core() and core_aux
Invoking undefined behavior is not the correct way to
get a core dump. Plus there's only a single caller,
only used in truly bizarre circumstances.
Diffstat (limited to 'src/util.cc')
-rw-r--r-- | src/util.cc | 5 |
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); |