From: Arnaud Giersch Date: Mon, 5 Mar 2018 14:35:43 +0000 (+0100) Subject: Add debug message. X-Git-Tag: v3.19~145 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/7b220eb07045f753bc14f430da87566d11e363a8 Add debug message. --- diff --git a/examples/s4u/actor-kill-pid/s4u-actor-kill-pid.cpp b/examples/s4u/actor-kill-pid/s4u-actor-kill-pid.cpp index 3b8d5a3017..3f1c42d583 100644 --- a/examples/s4u/actor-kill-pid/s4u-actor-kill-pid.cpp +++ b/examples/s4u/actor-kill-pid/s4u-actor-kill-pid.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2017 The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2017-2018 The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -51,9 +51,9 @@ static void killer() try { simgrid::s4u::Actor::kill(pidB); + } catch (const std::runtime_error& e) { + XBT_DEBUG("Caught exception: %s", e.what()); } - catch (const std::runtime_error &) - {} simgrid::s4u::this_actor::sleep_for(1); XBT_INFO("Killing everybody but myself");