]> Zhao Yanbai Git Server - minix.git/commitdiff
deadlock() - more info
authorTomas Hruby <tom@minix3.org>
Mon, 3 May 2010 17:38:54 +0000 (17:38 +0000)
committerTomas Hruby <tom@minix3.org>
Mon, 3 May 2010 17:38:54 +0000 (17:38 +0000)
- deadlock() is more verbose in case of a detected deadlock. First, it
  lists all processses in the deadlock group. Then it prints the proc
  extra info, not only  stack trace and register dump

kernel/proc.c

index d7df9a8e9b4432d262e49b0f762c3769287730a9..12dcc5681cca1e0733b81efcc5e625823dedb42f 100644 (file)
@@ -492,6 +492,10 @@ proc_nr_t src_dst;                         /* src or dst process */
                printf("deadlock between these processes:\n");
                for(i = 0; i < group_size; i++) {
                        printf(" %10s ", processes[i]->p_name);
+               }
+               printf("\n\n");
+               for(i = 0; i < group_size; i++) {
+                       print_proc(processes[i]);
                        proc_stacktrace(processes[i]);
                }
          }