From: Tomas Hruby Date: Mon, 3 May 2010 17:38:54 +0000 (+0000) Subject: deadlock() - more info X-Git-Tag: v3.1.7~92 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=ec564796755f24b66e032e70c73bef3de86d5f4c;p=minix.git deadlock() - more info - 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 --- diff --git a/kernel/proc.c b/kernel/proc.c index d7df9a8e9..12dcc5681 100644 --- a/kernel/proc.c +++ b/kernel/proc.c @@ -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]); } }