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
fc11025a
Unverified
Commit
fc11025a
authored
Nov 21, 2017
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commands: allow waiting for all states
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
f984925d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
commands.c
src/lxc/commands.c
+0
-19
No files found.
src/lxc/commands.c
View file @
fc11025a
...
@@ -850,24 +850,6 @@ int lxc_cmd_add_state_client(const char *name, const char *lxcpath,
...
@@ -850,24 +850,6 @@ int lxc_cmd_add_state_client(const char *name, const char *lxcpath,
return
state
;
return
state
;
}
}
if
((
state
==
STARTING
)
&&
!
states
[
RUNNING
]
&&
!
states
[
STOPPING
]
&&
!
states
[
STOPPED
])
{
TRACE
(
"Container is in %s state and caller requested to be "
"informed about a previous state"
,
lxc_state2str
(
state
));
return
state
;
}
else
if
((
state
==
RUNNING
)
&&
!
states
[
STOPPING
]
&&
!
states
[
STOPPED
])
{
TRACE
(
"Container is in %s state and caller requested to be "
"informed about a previous state"
,
lxc_state2str
(
state
));
return
state
;
}
else
if
((
state
==
STOPPING
)
&&
!
states
[
STOPPED
])
{
TRACE
(
"Container is in %s state and caller requested to be "
"informed about a previous state"
,
lxc_state2str
(
state
));
return
state
;
}
else
if
((
state
==
STOPPED
)
||
(
state
==
ABORTING
))
{
TRACE
(
"Container is in %s state and caller requested to be "
"informed about a previous state"
,
lxc_state2str
(
state
));
return
state
;
}
ret
=
lxc_cmd
(
name
,
&
cmd
,
&
stopped
,
lxcpath
,
NULL
);
ret
=
lxc_cmd
(
name
,
&
cmd
,
&
stopped
,
lxcpath
,
NULL
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
ERROR
(
"%s - Failed to execute command"
,
strerror
(
errno
));
ERROR
(
"%s - Failed to execute command"
,
strerror
(
errno
));
...
@@ -877,7 +859,6 @@ int lxc_cmd_add_state_client(const char *name, const char *lxcpath,
...
@@ -877,7 +859,6 @@ int lxc_cmd_add_state_client(const char *name, const char *lxcpath,
/* We should now be guaranteed to get an answer from the state sending
/* We should now be guaranteed to get an answer from the state sending
* function.
* function.
*/
*/
if
(
cmd
.
rsp
.
ret
<
0
)
{
if
(
cmd
.
rsp
.
ret
<
0
)
{
ERROR
(
"Failed to receive socket fd"
);
ERROR
(
"Failed to receive socket fd"
);
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