diff options
author | Arne Juul <arnej@verizonmedia.com> | 2020-07-02 12:34:06 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2020-07-03 08:02:40 +0000 |
commit | fca385ca81ea92e6b9dbbb0d1794cfafa35ababc (patch) | |
tree | 26704f07cf3c42e9e1a6856e7a23dd96519af2f0 /staging_vespalib | |
parent | 0a309ca9dcba4fed2ba8e4c56230330859a70148 (diff) |
avoid naked exit
Diffstat (limited to 'staging_vespalib')
-rw-r--r-- | staging_vespalib/src/tests/shutdownguard/shutdownguard_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/staging_vespalib/src/tests/shutdownguard/shutdownguard_test.cpp b/staging_vespalib/src/tests/shutdownguard/shutdownguard_test.cpp index fbaa5581173..04a811494c9 100644 --- a/staging_vespalib/src/tests/shutdownguard/shutdownguard_test.cpp +++ b/staging_vespalib/src/tests/shutdownguard/shutdownguard_test.cpp @@ -3,6 +3,7 @@ #include <vespa/vespalib/util/shutdownguard.h> #include <unistd.h> #include <sys/wait.h> +#include <cstdlib> using namespace vespalib; @@ -23,7 +24,7 @@ Test::Main() for (int i = 0; i < 1000; ++i) { std::this_thread::sleep_for(20ms); } - exit(0); + std::_Exit(0); } for (int i = 0; i < 1000; ++i) { std::this_thread::sleep_for(20ms); |