From: Alan Cox Date: Sat, 7 Jul 2018 18:48:59 +0000 (+0100) Subject: syscall_other: make halt tell you it's done X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=d4a1b46b3eb78b592adf1829e81bdcd4a4a3dfcd;p=FUZIX.git syscall_other: make halt tell you it's done Useful when you have a final sync to slow media, or a slow shutdown process and you want to know when it's finally safe to hit off. --- diff --git a/Kernel/syscall_other.c b/Kernel/syscall_other.c index 69fab02f..ead1e2cf 100644 --- a/Kernel/syscall_other.c +++ b/Kernel/syscall_other.c @@ -535,8 +535,10 @@ arg_t _uadmin(void) if (func != AD_NOSYNC) sync(); /* Wants moving into machine specific files */ - if (cmd == A_SHUTDOWN || cmd == A_DUMP) + if (cmd == A_SHUTDOWN || cmd == A_DUMP) { + kputs("Halted.\n"); platform_monitor(); + } if (cmd == A_REBOOT) platform_reboot();