From: Christian Brauner Date: Tue, 8 Aug 2017 19:48:48 +0000 (+0200) Subject: lxccontainer: remove 5s timeout X-Git-Tag: lxc-2.1.0~27^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1736%2Fhead;p=thirdparty%2Flxc.git lxccontainer: remove 5s timeout Signed-off-by: Christian Brauner --- diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c index 3639d6f28..44b4068d2 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c @@ -705,18 +705,6 @@ static int lxc_rcv_status(int state_socket) { int ret; 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: /* Receive container state. */