From: Ben Gras Date: Thu, 4 Aug 2005 08:25:10 +0000 (+0000) Subject: ps was looking for INIT as first user process, but INIT has become init. X-Git-Tag: v3.1.0~458 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/migration-4to9?a=commitdiff_plain;h=693c7abe2a2900eab5f5750b311c42d707848129;p=minix.git 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.. --- diff --git a/commands/ps/ps.c b/commands/ps/ps.c index d5379b6c3..88a95a50e 100644 --- a/commands/ps/ps.c +++ b/commands/ps/ps.c @@ -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;