diff options
author | Max Kellermann <max@duempel.org> | 2013-10-30 23:42:05 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-30 23:42:16 +0100 |
commit | 8c834a4ff646ba97a397abb8b7f2ab32224b7244 (patch) | |
tree | 64112e43bc1c1afe7f8d13bc4f3079ab36161bc9 /src | |
parent | 8c010042193addcfd01f5b6cd230cabc87d41d22 (diff) | |
download | mpd-8c834a4ff646ba97a397abb8b7f2ab32224b7244.tar.gz mpd-8c834a4ff646ba97a397abb8b7f2ab32224b7244.tar.xz mpd-8c834a4ff646ba97a397abb8b7f2ab32224b7244.zip |
system/FatalError: use _exit() instead of exit()
Skip the global destructors. We don't need them here - we bail out as
quickly as we can.
Diffstat (limited to '')
-rw-r--r-- | src/system/FatalError.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/system/FatalError.cxx b/src/system/FatalError.cxx index 2752440f8..85384c498 100644 --- a/src/system/FatalError.cxx +++ b/src/system/FatalError.cxx @@ -25,7 +25,7 @@ #include <glib.h> -#include <stdlib.h> +#include <unistd.h> #include <stdarg.h> #include <stdio.h> @@ -41,7 +41,7 @@ gcc_noreturn static void Abort() { - exit(EXIT_FAILURE); + _exit(EXIT_FAILURE); } void |