From: Martin Quinson Date: Wed, 6 Aug 2014 23:59:31 +0000 (+0200) Subject: react correctly if an exception does not originates the current process X-Git-Tag: v3_12~858^2~4 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/287f3ab4d9a5a58f3e449311aa501ca504fded54 react correctly if an exception does not originates the current process --- diff --git a/src/xbt/ex.c b/src/xbt/ex.c index 8d4487cf33..a543fb8fce 100644 --- a/src/xbt/ex.c +++ b/src/xbt/ex.c @@ -133,6 +133,8 @@ void xbt_backtrace_display_current(void) void xbt_ex_display(xbt_ex_t * e) { char *thrower = NULL; + if (e->pid != xbt_getpid()) + thrower = bprintf(" on process %d",e->pid); fprintf(stderr, "** SimGrid: UNCAUGHT EXCEPTION received on %s(%d): category: %s; value: %d\n"