summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-05-14 15:26:44 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-05-14 15:26:44 +0000
commit4b5186044b8d52f518bf5a6330bd2e2750a8cffe (patch)
tree4085821e1406ece9260263f83aaa49fb11c93d03 /init
parent9097cbfc3e4050bf324551d8ba765445cbbf07ae (diff)
(reboot_system): Print prettier messages for shutdown notifications.
Diffstat (limited to 'init')
-rw-r--r--init/init.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/init/init.c b/init/init.c
index ae44c3ec..d1d27a4a 100644
--- a/init/init.c
+++ b/init/init.c
@@ -156,16 +156,17 @@ reboot_system (int flags)
for (n = ntfy_tasks; n != NULL; n = n->next)
{
error_t err;
- printf ("init: notifying %p\n", (void *) n->notify_port);
+ printf ("%s: notifying %s of shutdown...",
+ program_invocation_short_name, n->name);
fflush (stdout);
err = startup_dosync (n->notify_port, 60000); /* 1 minute to reply */
- if (err && err != MACH_SEND_INVALID_DEST)
- {
- printf ("init: %p complained: %s\n",
- (void *) n->notify_port,
- strerror (err));
- fflush (stdout);
- }
+ if (err == MACH_SEND_INVALID_DEST)
+ printf ("(no longer present)\n");
+ else if (err)
+ printf ("%s", strerror (err));
+ else
+ printf ("done\n");
+ fflush (stdout);
}
if (fakeboot)