]> Zhao Yanbai Git Server - minix.git/commitdiff
kernel: give kernel tasks their process name back
authorDavid van Moolenbroek <david@minix3.org>
Thu, 26 Jul 2012 14:35:08 +0000 (14:35 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Thu, 26 Jul 2012 14:35:08 +0000 (14:35 +0000)
kernel/main.c

index c1448833e82511f09f79aecc7701510720d6ac15..c5e7ab29f85a43a6f68071f4b59de98ef9cef732 100644 (file)
@@ -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 */