From: David van Moolenbroek Date: Thu, 26 Jul 2012 14:35:08 +0000 (+0000) Subject: kernel: give kernel tasks their process name back X-Git-Tag: v3.2.1~441 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/CHANGES?a=commitdiff_plain;h=6ded58b510b203bafdd2755ada695baab718e509;p=minix.git kernel: give kernel tasks their process name back --- diff --git a/kernel/main.c b/kernel/main.c index c1448833e..c5e7ab29f 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -157,6 +157,8 @@ void kmain(kinfo_t *local_cbi) rp = proc_addr(ip->proc_nr); /* get process pointer */ ip->endpoint = rp->p_endpoint; /* ipc endpoint */ make_zero64(rp->p_cpu_time_left); + if(i < NR_TASKS) /* name (tasks only) */ + strlcpy(rp->p_name, ip->proc_name, sizeof(rp->p_name)); if(i >= NR_TASKS) { /* Remember this so it can be passed to VM */