]> Zhao Yanbai Git Server - minix.git/commitdiff
ps was looking for INIT as first user process, but INIT has become init.
authorBen Gras <ben@minix3.org>
Thu, 4 Aug 2005 08:25:10 +0000 (08:25 +0000)
committerBen Gras <ben@minix3.org>
Thu, 4 Aug 2005 08:25:10 +0000 (08:25 +0000)
There are still some checks in ps that presume there are only system
processes before INIT and all others are user processes..

commands/ps/ps.c

index d5379b6c351d1537ad9d75d5e2ec92837721b4f3..88a95a50e633b7c309e3181219345d096187ee23 100644 (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;