]> Zhao Yanbai Git Server - minix.git/commitdiff
procfs: add service pid information 11/3011/1
authorCristiano Giuffrida <giuffrida@cs.vu.nl>
Sat, 20 Dec 2014 00:29:37 +0000 (01:29 +0100)
committerDavid van Moolenbroek <david@minix3.org>
Mon, 29 Jun 2015 10:56:53 +0000 (10:56 +0000)
Change-Id: I163ca4c6c6db45cca41515644ac6c2acd0807ee8

minix/fs/procfs/service.c

index 0dc2f6a19e0d3c2b9b8057fa08d22096fefa63f2..06db732d79dcf58df8ffedc24cba8c275a875f3f 100644 (file)
@@ -304,6 +304,7 @@ service_read(struct inode * node)
        /* TODO: add a large number of other fields! */
        buf_printf("filename: %s\n", rpub->proc_name);
        buf_printf("endpoint: %d\n", rpub->endpoint);
+       buf_printf("pid:      %d\n", rp->r_pid);
        buf_printf("restarts: %d\n", rp->r_restarts);
        buf_printf("policies: %s\n", service_get_policies(policies, slot));
 }