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:
Ben Gras 2005-08-04 08:25:10 +00:00
parent 93460d0ad0
commit 693c7abe2a

View File

@ -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;