X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=init%2Fdo_mounts_initrd.c;h=a6b4c0c08e13ea4bc1db5ade1cf8eb73d18c7d72;hb=f3d9071667752e5d419e59f76912ed3fb4a6bb9c;hp=b222ce9e1c8bd3e4871acf564d187225ba0e574c;hpb=ef93127e4c7b4b8d46421045641048397eaac43d;p=cascardo%2Flinux.git diff --git a/init/do_mounts_initrd.c b/init/do_mounts_initrd.c index b222ce9e1c8b..a6b4c0c08e13 100644 --- a/init/do_mounts_initrd.c +++ b/init/do_mounts_initrd.c @@ -56,12 +56,9 @@ static void __init handle_initrd(void) sys_chroot("."); pid = kernel_thread(do_linuxrc, "/linuxrc", SIGCHLD); - if (pid > 0) { - while (pid != sys_wait4(-1, NULL, 0, NULL)) { - try_to_freeze(); + if (pid > 0) + while (pid != sys_wait4(-1, NULL, 0, NULL)) yield(); - } - } /* move initrd to rootfs' /old */ sys_fchdir(old_fd);