diff --git a/minix/fs/procfs/service.c b/minix/fs/procfs/service.c index a7ed9eba9..e9f88496c 100644 --- a/minix/fs/procfs/service.c +++ b/minix/fs/procfs/service.c @@ -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); } /*