Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
react correctly if an exception does not originates the current process
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 6 Aug 2014 23:59:31 +0000 (01:59 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 6 Aug 2014 23:59:31 +0000 (01:59 +0200)
src/xbt/ex.c

index 8d4487c..a543fb8 100644 (file)
@@ -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"