procfs: do not list init in /proc/services
It is not a system service. Change-Id: Ibfbf08aa52095826c19172e517bcbd292e7944a0
This commit is contained in:
parent
d09f72c453
commit
fefec20e6b
1 changed files with 6 additions and 1 deletions
|
@ -163,8 +163,13 @@ static int
|
||||||
service_active(index_t slot)
|
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)) ==
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue