Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54266
b: refs/heads/master
c: 726162b
h: refs/heads/master
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Linus Torvalds committed May 7, 2007
1 parent cf88a9d commit 0bc9474
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0709db6072c2e799eba1aa61bd19e0d7f38aa2cd
refs/heads/master: 726162b5dad154a90dad51c0185b891312de5757
5 changes: 3 additions & 2 deletions trunk/init/do_mounts_initrd.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@ static void __init handle_initrd(void)
sys_mount(".", "/", NULL, MS_MOVE, NULL);
sys_chroot(".");

current->flags |= PF_NOFREEZE;
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 */
Expand Down

0 comments on commit 0bc9474

Please sign in to comment.