From 287f3ab4d9a5a58f3e449311aa501ca504fded54 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Thu, 7 Aug 2014 01:59:31 +0200 Subject: [PATCH] react correctly if an exception does not originates the current process --- src/xbt/ex.c | 2 ++ 1 file changed, 2 insertions(+) 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" -- 2.20.1