diff --git a/src/anbox/runtime.cpp b/src/anbox/runtime.cpp index 41dac2d..58358b0 100644 --- a/src/anbox/runtime.cpp +++ b/src/anbox/runtime.cpp @@ -77,8 +77,7 @@ void Runtime::stop() { service_.stop(); for (auto& worker : workers_) - if (worker.joinable()) - worker.join(); + pthread_kill(worker.native_handle(), SIGTERM); } std::function)> Runtime::to_dispatcher_functional() diff --git a/src/anbox/runtime.h b/src/anbox/runtime.h index 32dd684..8eb5a83 100644 --- a/src/anbox/runtime.h +++ b/src/anbox/runtime.h @@ -48,8 +48,7 @@ public: // the size configured at creation time. void start(); - // stop cleanly shuts down a Runtime instance, - // joining all worker threads. + // stop cleanly shuts down a Runtime instance. void stop(); // to_dispatcher_functional returns a function for integration