From 69ac8ba31f5b1bb3a9bba3525490d31f414dfa22 Mon Sep 17 00:00:00 2001 From: Nigel Cunningham Date: Tue, 18 Sep 2007 22:46:25 -0700 Subject: [PATCH] --- yaml --- r: 65019 b: refs/heads/master c: 019ad4a0a60b09022945273848b5a686e39a78aa h: refs/heads/master i: 65017: 324750c28d4464423e7d72212e8bb24027e47ff6 65015: 00c0e03539d6ce232b2ea04333c0ca3f435c34e0 v: v3 --- [refs] | 2 +- trunk/init/do_mounts_initrd.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 36565cc5a78b..351df976842f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2c392a4f47f41b24432e6aa77bb5167d0bbb10c5 +refs/heads/master: 019ad4a0a60b09022945273848b5a686e39a78aa diff --git a/trunk/init/do_mounts_initrd.c b/trunk/init/do_mounts_initrd.c index a6b4c0c08e13..fd4fc12d2624 100644 --- a/trunk/init/do_mounts_initrd.c +++ b/trunk/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);