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
a38c2e6f
Commit
a38c2e6f
authored
Jan 24, 2014
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: Fix startone
- Fix cgroup test to work on multi-core systems - Drop user interaction Signed-off-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
parent
52d21d40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
startone.c
src/tests/startone.c
+1
-11
No files found.
src/tests/startone.c
View file @
a38c2e6f
...
...
@@ -158,12 +158,6 @@ int main(int argc, char *argv[])
goto
out
;
}
printf
(
"hit return to start container"
);
char
mychar
;
ret
=
scanf
(
"%c"
,
&
mychar
);
if
(
ret
<
0
)
goto
out
;
if
(
!
lxc_container_get
(
c
))
{
fprintf
(
stderr
,
"%d: failed to get extra ref to container
\n
"
,
__LINE__
);
exit
(
1
);
...
...
@@ -196,7 +190,7 @@ int main(int argc, char *argv[])
}
len
=
c
->
get_cgroup_item
(
c
,
"cpuset.cpus"
,
buf
,
200
);
if
(
len
<=
0
||
str
cmp
(
buf
,
"0
\n
"
))
{
if
(
len
<=
0
||
str
ncmp
(
buf
,
"0"
,
1
))
{
fprintf
(
stderr
,
"%d: not able to get cpuset.cpus (len %d buf %s)
\n
"
,
__LINE__
,
len
,
buf
);
goto
out
;
}
...
...
@@ -217,10 +211,6 @@ int main(int argc, char *argv[])
c
->
set_cgroup_item
(
c
,
"freezer.state"
,
"THAWED"
);
printf
(
"hit return to finish"
);
ret
=
scanf
(
"%c"
,
&
mychar
);
if
(
ret
<
0
)
goto
out
;
c
->
stop
(
c
);
/* feh - multilib has moved the lxc-init crap */
...
...
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