]> Zhao Yanbai Git Server - minix.git/commitdiff
Miscellaneous small fixes to prettify startup output.
authorJorrit Herder <jnherder@minix3.org>
Tue, 2 Aug 2005 15:56:24 +0000 (15:56 +0000)
committerJorrit Herder <jnherder@minix3.org>
Tue, 2 Aug 2005 15:56:24 +0000 (15:56 +0000)
drivers/fxp/fxp.c
drivers/memory/random.c
etc/usr/rc
servers/pm/main.c

index 109393deb61c1e2ff22a9f288984ed70669573ac..260f040e93ebf976a589177e07a860d212332137 100644 (file)
@@ -273,8 +273,6 @@ int main(void)
        v= 0;
 #if 0
        (void) env_parse("ETH_IGN_PROTO", "x", 0, &v, 0x0000L, 0xFFFFL);
-#else
-       printf("not calling env_parse for ETH_IGN_PROTO\n");
 #endif
        eth_ign_proto= htons((u16_t) v);
 
@@ -432,11 +430,8 @@ static void fxp_pci_conf()
                        if (!env_prefix(envvar, "pci"))
                                env_panic(envvar);
                }
-#else
-               printf("FXP: not calling getenv\n");
 #endif
 
-               printf("not calling env_parse\n");
                v= 0;
 #if 0
                (void) env_parse(envvar, envfmt, 1, &v, 0, 255);
@@ -935,7 +930,6 @@ fxp_t *fp;
        }
 #else
        i= 0;
-       printf("not calling env_parse\n");
 #endif
 
 #if 0
index ce1ac1a8c67c75a68984c2a2709c67f29a45ff14..ce15c1755411a6815aafad91eff3cf408caae658 100644 (file)
@@ -214,7 +214,6 @@ PRIVATE void reseed()
                return;
 
        reseed_count++;
-       printf("reseed: round %d, samples = %d\n", reseed_count, samples);
        SHA256_Init(&ctx);
        if (got_seeded)
                SHA256_Update(&ctx, random_key, sizeof(random_key));
@@ -225,7 +224,6 @@ PRIVATE void reseed()
        {
                if ((reseed_count & (1UL << (i-1))) != 0)
                        break;
-               printf("random_reseed: adding pool %d\n", i);
                SHA256_Final(digest, &pool_ctx[i]);
                SHA256_Update(&ctx, digest, sizeof(digest));
                SHA256_Init(&pool_ctx[i]);
index df747d9abb34613efc203cfb15bf14f26ab3e513..ec21d6e55b8e7a7c3d118d01ed02799124529950 100644 (file)
@@ -67,7 +67,7 @@ start)
     then
        cat < $RANDOM_FILE >/dev/random
        # overwrite $RANDOM_FILE. We don't want to use this data again
-       dd if=/dev/random of=$RANDOM_FILE bs=1024 count=1
+       dd if=/dev/random of=$RANDOM_FILE bs=1024 count=1 2> /dev/null
     fi
 
     # Start servers and drivers set at the boot monitor.
@@ -93,6 +93,7 @@ start)
     if [ ! -f /CD ]
     then       daemonize cron
     fi
+    echo .
 
     if [ "$net" ]
     then
@@ -102,6 +103,7 @@ start)
            . /etc/rc.net
        else
            # Standard network daemons.
+           echo -n "Starting networking:"
            daemonize dhcpd
            daemonize nonamed
            daemonize talkd
index aeb38e27f679b1ac9f7c7d699e1ba766575c8c8d..14ee0f6510ece3c6d25f9d6a185e23cfd1e451c0 100644 (file)
@@ -203,13 +203,14 @@ PRIVATE void pm_init()
                        rmp->mp_parent = PM_PROC_NR;
                        rmp->mp_flags |= IN_USE; 
                        rmp->mp_nice = 0;
+               sigemptyset(&rmp->mp_ignore);   
                }
                else {                                  /* system process */
                        rmp->mp_pid = get_free_pid();
                        rmp->mp_parent = SM_PROC_NR;
                        rmp->mp_flags |= IN_USE | DONT_SWAP | PRIV_PROC; 
+               sigfillset(&rmp->mp_ignore);    
                }
-               sigemptyset(&rmp->mp_ignore);   
                sigemptyset(&rmp->mp_sigmask);
                sigemptyset(&rmp->mp_catch);
                sigemptyset(&rmp->mp_sig2mess);