coverity: #1435806

Logically dead code Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 918d16b7
......@@ -1971,11 +1971,8 @@ static bool do_lxcapi_reboot2(struct lxc_container *c, int timeout)
}
TRACE("Sent signal %d to pid %d", rebootsignal, 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