From ab1bee245ba870c02ec551b5c30fc25912845e9c Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 27 Nov 2003 13:54:29 +0000 Subject: non cpu burning forever loops --- mdk-stage1/init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mdk-stage1/init.c b/mdk-stage1/init.c index 77f8b110f..e9c2796fc 100644 --- a/mdk-stage1/init.c +++ b/mdk-stage1/init.c @@ -63,7 +63,7 @@ int klog_pid; void fatal_error(char *msg) { printf("FATAL ERROR IN INIT: %s\n\nI can't recover from this, please reboot manually and send bugreport.\n", msg); - while (1); + select(0, NULL, NULL, NULL, NULL); } void print_error(char *msg) @@ -342,7 +342,7 @@ void unmount_filesystems(void) if (nb) { printf("failed to umount some filesystems\n"); - while (1); + select(0, NULL, NULL, NULL, NULL); } } @@ -499,7 +499,7 @@ int main(int argc __attribute__ ((unused)), char **argv __attribute__ ((unused)) reboot(0xfee1dead, 672274793, reboot_magic); } else { printf("you may safely reboot or halt your system\n"); - while (1); + select(0, NULL, NULL, NULL, NULL); } return 0; -- cgit v1.2.1