Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
7f145a6d
Commit
7f145a6d
authored
Mar 18, 2013
by
Dennis Schridde
Committed by
Stéphane Graber
Mar 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for ia64: Use __clone2 for ia64 in lxc/start.c
Signed-off-by:
Dennis Schridde
<
devurandom@gmx.net
>
Acked-by:
Serge E. Hallyn
<
serge.hallyn@ubuntu.com
>
parent
d71d919e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
start.c
src/lxc/start.c
+6
-1
No files found.
src/lxc/start.c
View file @
7f145a6d
...
@@ -564,7 +564,7 @@ static int must_drop_cap_sys_boot(void)
...
@@ -564,7 +564,7 @@ static int must_drop_cap_sys_boot(void)
FILE
*
f
=
fopen
(
"/proc/sys/kernel/ctrl-alt-del"
,
"r"
);
FILE
*
f
=
fopen
(
"/proc/sys/kernel/ctrl-alt-del"
,
"r"
);
int
ret
,
cmd
,
v
;
int
ret
,
cmd
,
v
;
long
stack_size
=
4096
;
long
stack_size
=
4096
;
void
*
stack
=
alloca
(
stack_size
)
+
stack_size
;
void
*
stack
=
alloca
(
stack_size
);
int
status
;
int
status
;
pid_t
pid
;
pid_t
pid
;
...
@@ -581,7 +581,12 @@ static int must_drop_cap_sys_boot(void)
...
@@ -581,7 +581,12 @@ static int must_drop_cap_sys_boot(void)
}
}
cmd
=
v
?
LINUX_REBOOT_CMD_CAD_ON
:
LINUX_REBOOT_CMD_CAD_OFF
;
cmd
=
v
?
LINUX_REBOOT_CMD_CAD_ON
:
LINUX_REBOOT_CMD_CAD_OFF
;
#ifdef __ia64__
pid
=
__clone2
(
container_reboot_supported
,
stack
,
stack_size
,
CLONE_NEWPID
|
SIGCHLD
,
&
cmd
);
#else
stack
+=
stack_size
;
pid
=
clone
(
container_reboot_supported
,
stack
,
CLONE_NEWPID
|
SIGCHLD
,
&
cmd
);
pid
=
clone
(
container_reboot_supported
,
stack
,
CLONE_NEWPID
|
SIGCHLD
,
&
cmd
);
#endif
if
(
pid
<
0
)
{
if
(
pid
<
0
)
{
SYSERROR
(
"failed to clone
\n
"
);
SYSERROR
(
"failed to clone
\n
"
);
return
-
1
;
return
-
1
;
...
...
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