|
@@ -57,8 +57,10 @@ static void __init handle_initrd(void)
|
|
|
|
|
|
pid = kernel_thread(do_linuxrc, "/linuxrc", SIGCHLD);
|
|
pid = kernel_thread(do_linuxrc, "/linuxrc", SIGCHLD);
|
|
if (pid > 0)
|
|
if (pid > 0)
|
|
- while (pid != sys_wait4(-1, NULL, 0, NULL))
|
|
|
|
|
|
+ while (pid != sys_wait4(-1, NULL, 0, NULL)) {
|
|
|
|
+ try_to_freeze();
|
|
yield();
|
|
yield();
|
|
|
|
+ }
|
|
|
|
|
|
/* move initrd to rootfs' /old */
|
|
/* move initrd to rootfs' /old */
|
|
sys_fchdir(old_fd);
|
|
sys_fchdir(old_fd);
|