From 3931e7ef88aa2a8a67ca967ad1fe359df736ac86 Mon Sep 17 00:00:00 2001 From: LiFeng Date: Thu, 16 Apr 2020 22:15:30 +0800 Subject: [PATCH] init pids: add init fd in lxc_init_pids_handler Signed-off-by: LiFeng --- src/lxc/start.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lxc/start.c b/src/lxc/start.c index 938ca8e..e099285 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -2967,6 +2967,8 @@ static struct lxc_handler *lxc_init_pids_handler(char *name, char *lxcpath, stru handler->sigfd = -EBADF; handler->init_died = false; handler->state_socket_pair[0] = handler->state_socket_pair[1] = -1; + handler->monitor_status_fd = -EBADF; + handler->pidfd = -EBADF; if (handler->conf->reboot == REBOOT_NONE) lxc_list_init(&handler->conf->state_clients); -- 1.8.3.1