procfs: do not list init in /proc/services

It is not a system service.

Change-Id: Ibfbf08aa52095826c19172e517bcbd292e7944a0
This commit is contained in:
David van Moolenbroek 2015-09-05 18:21:53 +02:00
parent d09f72c453
commit fefec20e6b

View file

@ -163,8 +163,13 @@ static int
service_active(index_t slot)
{
/*
* Init is in RS's process tables as the representation of user
* processes. It is not a system service.
*/
return ((rproc.proc[slot].r_flags & (RS_IN_USE | RS_ACTIVE)) ==
(RS_IN_USE | RS_ACTIVE));
(RS_IN_USE | RS_ACTIVE) &&
rproc.pub[slot].endpoint != INIT_PROC_NR);
}
/*