Logically dead code

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2018-05-26 03:21:05 +02:00
parent a579fa51bf
commit 923929f612
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -2041,11 +2041,8 @@ static bool do_lxcapi_shutdown(struct lxc_container *c, int timeout)
}
TRACE("Sent signal %d to pid %d", haltsignal, pid);
if (timeout == 0) {
if (state_client_fd >= 0)
close(state_client_fd);
if (timeout == 0)
return true;
}
ret = lxc_cmd_sock_rcv_state(state_client_fd, timeout);
close(state_client_fd);