procfs: add service pid information

Change-Id: I163ca4c6c6db45cca41515644ac6c2acd0807ee8
This commit is contained in:
Cristiano Giuffrida 2014-12-20 01:29:37 +01:00 committed by David van Moolenbroek
parent f5321d8d55
commit a8f606defa

View file

@ -304,6 +304,7 @@ service_read(struct inode * node)
/* TODO: add a large number of other fields! */ /* TODO: add a large number of other fields! */
buf_printf("filename: %s\n", rpub->proc_name); buf_printf("filename: %s\n", rpub->proc_name);
buf_printf("endpoint: %d\n", rpub->endpoint); 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("restarts: %d\n", rp->r_restarts);
buf_printf("policies: %s\n", service_get_policies(policies, slot)); buf_printf("policies: %s\n", service_get_policies(policies, slot));
} }