]> Zhao Yanbai Git Server - minix.git/commitdiff
Give init process group 1.
authorBen Gras <ben@minix3.org>
Fri, 3 Feb 2006 14:54:20 +0000 (14:54 +0000)
committerBen Gras <ben@minix3.org>
Fri, 3 Feb 2006 14:54:20 +0000 (14:54 +0000)
servers/pm/main.c

index e7245f8e42bd6e8fe9d7dbe4047867a82a14a002..471be386723203d6cee7ee85568b3a52518bdcb2 100644 (file)
@@ -216,7 +216,7 @@ PRIVATE void pm_init()
                sigemptyset(&rmp->mp_sigmask);
                sigemptyset(&rmp->mp_catch);
                if (ip->proc_nr == INIT_PROC_NR) {      /* user process */
-                       rmp->mp_pid = INIT_PID;
+                       rmp->mp_procgrp = rmp->mp_pid = INIT_PID;
                        rmp->mp_flags |= IN_USE; 
                }
                else {                                  /* system process */