From 0bd61375ad17c51a0e4d044fe013042382c6f569 Mon Sep 17 00:00:00 2001 From: Jorrit Herder Date: Tue, 2 Aug 2005 15:56:24 +0000 Subject: [PATCH] Miscellaneous small fixes to prettify startup output. --- drivers/fxp/fxp.c | 6 ------ drivers/memory/random.c | 2 -- etc/usr/rc | 4 +++- servers/pm/main.c | 3 ++- 4 files changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/fxp/fxp.c b/drivers/fxp/fxp.c index 109393deb..260f040e9 100644 --- a/drivers/fxp/fxp.c +++ b/drivers/fxp/fxp.c @@ -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 diff --git a/drivers/memory/random.c b/drivers/memory/random.c index ce1ac1a8c..ce15c1755 100644 --- a/drivers/memory/random.c +++ b/drivers/memory/random.c @@ -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]); diff --git a/etc/usr/rc b/etc/usr/rc index df747d9ab..ec21d6e55 100644 --- a/etc/usr/rc +++ b/etc/usr/rc @@ -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 diff --git a/servers/pm/main.c b/servers/pm/main.c index aeb38e27f..14ee0f651 100644 --- a/servers/pm/main.c +++ b/servers/pm/main.c @@ -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); -- 2.44.0