mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-03 00:56:22 +00:00
close inherited fds when we still have proc mounted
and don't close the sigfd Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
5112cd7090
commit
7da8ab18d9
@ -650,6 +650,9 @@ static int do_start(void *data)
|
||||
if (lsm_process_label_set(lsm_label, 1, 1) < 0)
|
||||
goto out_warn_father;
|
||||
|
||||
if (lxc_check_inherited(handler->conf, handler->sigfd))
|
||||
return -1;
|
||||
|
||||
/* If we mounted a temporary proc, then unmount it now */
|
||||
tmp_proc_unmount(handler->conf);
|
||||
|
||||
@ -678,9 +681,6 @@ static int do_start(void *data)
|
||||
|
||||
close(handler->sigfd);
|
||||
|
||||
if (lxc_check_inherited(handler->conf, -1))
|
||||
return -1;
|
||||
|
||||
/* after this call, we are in error because this
|
||||
* ops should not return as it execs */
|
||||
handler->ops->start(handler, handler->data);
|
||||
|
Loading…
Reference in New Issue
Block a user