A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add debug message.
[simgrid.git]
/
examples
/
s4u
/
actor-kill-pid
/
s4u-actor-kill-pid.cpp
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
3b8d5a3
..
3f1c42d
100644
(file)
--- 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. */
/* 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);
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");
simgrid::s4u::this_actor::sleep_for(1);
XBT_INFO("Killing everybody but myself");