diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2016-09-29 20:06:41 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2016-09-29 20:06:41 +0000 |
commit | 18615749df3d5ead96a387bee38222a14bffccd8 (patch) | |
tree | 4f141c0d3329970314cfd7547748b409fe56f3be /filedistribution | |
parent | aa97493e44bf9217b26015c9a1fa0ebf29093bf2 (diff) |
catch and abort on unknown exception to avoid std::thread doing it silently for you.
Diffstat (limited to 'filedistribution')
-rw-r--r-- | filedistribution/src/vespa/filedistribution/distributor/filedistributortrackerimpl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/filedistribution/src/vespa/filedistribution/distributor/filedistributortrackerimpl.cpp b/filedistribution/src/vespa/filedistribution/distributor/filedistributortrackerimpl.cpp index 6420dfd6006..32368eca54a 100644 --- a/filedistribution/src/vespa/filedistribution/distributor/filedistributortrackerimpl.cpp +++ b/filedistribution/src/vespa/filedistribution/distributor/filedistributortrackerimpl.cpp @@ -166,6 +166,9 @@ void asioWorker(asio::io_service& ioService) ioService.run(); } catch (const ZKConnectionLossException & e) { LOG(info, "Connection loss in asioWorker thread, resuming. %s", e.what()); + } catch (const std::exception & e) { + LOG(fatal, "Unknow exception in asioWorker. %s", e.what()); + assert(false); } } } |