summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-11-27 13:54:29 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-11-27 13:54:29 +0000
commitab1bee245ba870c02ec551b5c30fc25912845e9c (patch)
treedcc48305d210ba6019b0260247905bde5a487ea8
parent981d35eb8ed1922a5d90bbe8e055d912ac51bc36 (diff)
downloaddrakx-ab1bee245ba870c02ec551b5c30fc25912845e9c.tar
drakx-ab1bee245ba870c02ec551b5c30fc25912845e9c.tar.gz
drakx-ab1bee245ba870c02ec551b5c30fc25912845e9c.tar.bz2
drakx-ab1bee245ba870c02ec551b5c30fc25912845e9c.tar.xz
drakx-ab1bee245ba870c02ec551b5c30fc25912845e9c.zip
non cpu burning forever loops
-rw-r--r--mdk-stage1/init.c6
1 files 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;