mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-14 05:33:39 +00:00
seccomp: don't close the mainloop, simply remove the handler
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
c601840017
commit
eb551cefed
@ -1374,8 +1374,11 @@ int seccomp_notify_handler(int fd, uint32_t events, void *data,
|
||||
char *cookie = conf->seccomp.notifier.cookie;
|
||||
uint64_t req_id;
|
||||
|
||||
if (events & EPOLLHUP)
|
||||
return log_trace(LXC_MAINLOOP_CLOSE, "Syscall supervisee already exited");
|
||||
if (events & EPOLLHUP) {
|
||||
lxc_mainloop_del_handler(descr, fd);
|
||||
close(fd);
|
||||
return log_trace(0, "Removing seccomp notifier fd %d", fd);
|
||||
}
|
||||
|
||||
memset(req, 0, sizeof(*req));
|
||||
ret = seccomp_notify_receive(fd, req);
|
||||
|
Loading…
Reference in New Issue
Block a user