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
69eb39b2
Unverified
Commit
69eb39b2
authored
Aug 08, 2017
by
Christian Brauner
Committed by
Stéphane Graber
Aug 15, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lxccontainer: remove 5s timeout
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
e3ad43b9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
lxccontainer.c
src/lxc/lxccontainer.c
+0
-12
No files found.
src/lxc/lxccontainer.c
View file @
69eb39b2
...
@@ -702,18 +702,6 @@ static int lxc_rcv_status(int state_socket)
...
@@ -702,18 +702,6 @@ static int lxc_rcv_status(int state_socket)
{
{
int
ret
;
int
ret
;
int
state
=
-
1
;
int
state
=
-
1
;
struct
timeval
timeout
=
{
0
};
/* Set 5 second timeout to prevent hanging forever in case something
* goes wrong. 5 seconds is a long time to get into RUNNING state.
*/
timeout
.
tv_sec
=
5
;
ret
=
setsockopt
(
state_socket
,
SOL_SOCKET
,
SO_RCVTIMEO
,
(
const
void
*
)
&
timeout
,
sizeof
(
timeout
));
if
(
ret
<
0
)
{
SYSERROR
(
"Failed to set 5s timeout on containter state socket"
);
return
-
1
;
}
again
:
again
:
/* Receive container state. */
/* Receive container state. */
...
...
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