]> Zhao Yanbai Git Server - minix.git/commitdiff
Jorrit's fixes after reviewing Al's PM chapter
authorBen Gras <ben@minix3.org>
Thu, 1 Sep 2005 10:16:07 +0000 (10:16 +0000)
committerBen Gras <ben@minix3.org>
Thu, 1 Sep 2005 10:16:07 +0000 (10:16 +0000)
servers/pm/forkexit.c
servers/pm/signal.c

index 34407f7fe63fa7cc2c9a7239975ac45ff8ba0cbd..2e4cff377f13438181968aec74d0ff4898a6463a 100644 (file)
@@ -71,9 +71,9 @@ PUBLIC int do_fork()
   child_nr = (int)(rmc - mproc);       /* slot number of the child */
   procs_in_use++;
   *rmc = *rmp;                 /* copy parent's process slot to child's */
-
   rmc->mp_parent = who;                        /* record child's parent */
-  rmc->mp_flags &= (IN_USE|SEPARATE);  /* inherit only these flags */
+  /* inherit only these flags */
+  rmc->mp_flags &= (IN_USE|SEPARATE|PRIV_PROC|DONT_SWAP);
   rmc->mp_child_utime = 0;             /* reset administration */
   rmc->mp_child_stime = 0;             /* reset administration */
 
index d8da1e7d9df0a986b897e6ea22308b8b80ebe0a5..473d6562c4d5817b214771af9f4e27bd2298d231 100644 (file)
@@ -256,13 +256,12 @@ sigset_t sig_map;
                id = 0; break;  /* broadcast to process group */
            case SIGKILL:
                id = -1; break; /* broadcast to all except INIT */
+#if DEAD_CODE
            case SIGALRM:
-               /* Disregard SIGALRM when the target process has not
-                * requested an alarm. 
-                */
                if ((rmp->mp_flags & ALARM_ON) == 0) continue;
                rmp->mp_flags &= ~ALARM_ON;
                /* fall through */
+#endif
            default:
                id = proc_id;
                break;