mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-14 15:29:56 +00:00
coverity: #1435805
Logically dead code Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
a579fa51bf
commit
923929f612
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user