ps was looking for INIT as first user process, but INIT has become init.
There are still some checks in ps that presume there are only system processes before INIT and all others are user processes..
This commit is contained in:
parent
93460d0ad0
commit
693c7abe2a
@ -340,7 +340,7 @@ char *argv[];
|
||||
|
||||
/* We need to know where INIT hangs out. */
|
||||
for (i = FS_PROC_NR; i < nr_procs; i++) {
|
||||
if (strcmp(ps_proc[nr_tasks + i].p_name, "INIT") == 0) break;
|
||||
if (strcmp(ps_proc[nr_tasks + i].p_name, "init") == 0) break;
|
||||
}
|
||||
init_proc_nr = i;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user