X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=init%2Fdo_mounts_initrd.c;h=fd4fc12d262464b0b763e2e0fb5dd1781f2a3b70;hb=95c1e9aefa5d3a2dd61304797cad96e8fdcd95ce;hp=a6b4c0c08e13ea4bc1db5ade1cf8eb73d18c7d72;hpb=d7f5e3df3574c6e38b99f5fe22f15540b2b9811d;p=deliverable%2Flinux.git diff --git a/init/do_mounts_initrd.c b/init/do_mounts_initrd.c index a6b4c0c08e13..fd4fc12d2624 100644 --- a/init/do_mounts_initrd.c +++ b/init/do_mounts_initrd.c @@ -57,8 +57,10 @@ static void __init handle_initrd(void) pid = kernel_thread(do_linuxrc, "/linuxrc", SIGCHLD); if (pid > 0) - while (pid != sys_wait4(-1, NULL, 0, NULL)) + while (pid != sys_wait4(-1, NULL, 0, NULL)) { + try_to_freeze(); yield(); + } /* move initrd to rootfs' /old */ sys_fchdir(old_fd);