Logically dead code

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

View File

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