Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
982286d1
Commit
982286d1
authored
Dec 06, 2007
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Pull bugzilla-9345 into release branch
parents
92131481
8baabde6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
init/do_mounts_initrd.c
init/do_mounts_initrd.c
+9
-3
No files found.
init/do_mounts_initrd.c
View file @
982286d1
...
...
@@ -55,12 +55,18 @@ static void __init handle_initrd(void)
sys_mount
(
"."
,
"/"
,
NULL
,
MS_MOVE
,
NULL
);
sys_chroot
(
"."
);
/*
* In case that a resume from disk is carried out by linuxrc or one of
* its children, we need to tell the freezer not to wait for us.
*/
current
->
flags
|=
PF_FREEZER_SKIP
;
pid
=
kernel_thread
(
do_linuxrc
,
"/linuxrc"
,
SIGCHLD
);
if
(
pid
>
0
)
while
(
pid
!=
sys_wait4
(
-
1
,
NULL
,
0
,
NULL
))
{
try_to_freeze
();
while
(
pid
!=
sys_wait4
(
-
1
,
NULL
,
0
,
NULL
))
yield
();
}
current
->
flags
&=
~
PF_FREEZER_SKIP
;
/* move initrd to rootfs' /old */
sys_fchdir
(
old_fd
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment