diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-11-27 13:54:29 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-11-27 13:54:29 +0000 |
commit | ab1bee245ba870c02ec551b5c30fc25912845e9c (patch) | |
tree | dcc48305d210ba6019b0260247905bde5a487ea8 /mdk-stage1 | |
parent | 981d35eb8ed1922a5d90bbe8e055d912ac51bc36 (diff) | |
download | drakx-ab1bee245ba870c02ec551b5c30fc25912845e9c.tar drakx-ab1bee245ba870c02ec551b5c30fc25912845e9c.tar.gz drakx-ab1bee245ba870c02ec551b5c30fc25912845e9c.tar.bz2 drakx-ab1bee245ba870c02ec551b5c30fc25912845e9c.tar.xz drakx-ab1bee245ba870c02ec551b5c30fc25912845e9c.zip |
non cpu burning forever loops
Diffstat (limited to 'mdk-stage1')
-rw-r--r-- | mdk-stage1/init.c | 6 |
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; |