diff options
Diffstat (limited to 'vbench/src/apps/vbench/vbench.cpp')
-rw-r--r-- | vbench/src/apps/vbench/vbench.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vbench/src/apps/vbench/vbench.cpp b/vbench/src/apps/vbench/vbench.cpp index b5c2897207f..c73f38adaf2 100644 --- a/vbench/src/apps/vbench/vbench.cpp +++ b/vbench/src/apps/vbench/vbench.cpp @@ -44,12 +44,13 @@ int run(const std::string &cfg_name) { VBench vbench(cfg); NotifyDone notify(done); vespalib::RunnablePair runBoth(vbench, notify); - auto thread = vespalib::Thread::start(runBoth, vbench_thread); + auto thread = vespalib::thread::start(runBoth, vbench_thread); while (!SIG::INT.check() && !SIG::TERM.check() && !done.await(1s)) {} if (!done.await(vespalib::duration::zero())) { vbench.abort(); done.await(); } + thread.join(); if (vbench.tainted()) { fprintf(stderr, "vbench failed: %s\n", vbench.tainted().reason().c_str()); |