coverity: #1435805

Logically dead code Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 22cfc4fa
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment