From 4582b113110b605ea165abf1ff163dfddafe64a5 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Sun, 21 Jan 2001 20:00:06 +0000 Subject: - better msg in fatal errors - do not include code to spawn a shell for releases --- mdk-stage1/stage1.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c index 9ed4cc492..4c7b5e174 100644 --- a/mdk-stage1/stage1.c +++ b/mdk-stage1/stage1.c @@ -66,7 +66,7 @@ char * method_name; void fatal_error(char *msg) { - printf("FATAL ERROR IN STAGE1: %s\n\nI can't recover from this.\n", msg); + printf("FATAL ERROR IN STAGE1: %s\n\nI can't recover from this.\nYou may reboot your system.\n", msg); while (1); } @@ -75,6 +75,7 @@ void fatal_error(char *msg) /* spawns a shell on console #2 */ static void spawn_shell(void) { +#ifdef SPAWN_SHELL int fd; pid_t pid; char * shell_name = "/sbin/sash"; @@ -108,6 +109,7 @@ static void spawn_shell(void) close(fd); } +#endif } -- cgit v1.2.1