mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-13 23:52:30 +00:00
Merge pull request #3499 from brauner/2020-07-27/seccomp_notify_cleanup
seccomp: remove seccomp fd from event loop after task exited
This commit is contained in:
commit
64cbd48aa3
@ -1373,6 +1373,9 @@ 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");
|
||||
|
||||
memset(req, 0, sizeof(*req));
|
||||
ret = seccomp_notify_receive(fd, req);
|
||||
if (ret) {
|
||||
|
Loading…
Reference in New Issue
Block a user