mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-15 08:05:20 +00:00
start: don't call close on invalid file descriptor
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
586b1ce72b
commit
0d0d365516
@ -628,7 +628,7 @@ void lxc_free_handler(struct lxc_handler *handler)
|
||||
lxc_put_nsfds(handler);
|
||||
|
||||
if (handler->conf && handler->conf->reboot == 0)
|
||||
if (handler->conf->maincmd_fd)
|
||||
if (handler->conf->maincmd_fd >= 0)
|
||||
close(handler->conf->maincmd_fd);
|
||||
|
||||
if (handler->state_socket_pair[0] >= 0)
|
||||
|
Loading…
Reference in New Issue
Block a user