Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ static int hyper_pod_init(void *data)
close(hyper_epoll.efd);
close(hyper_epoll.ctl.fd);
close(hyper_epoll.tty.fd);
close(hyper_epoll.dev.fd);

sigemptyset(&mask);
sigaddset(&mask, SIGCHLD);
Expand Down
2 changes: 1 addition & 1 deletion src/netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ int hyper_setup_netlink_listener(struct hyper_event *e)
memset(&sa, 0, sizeof(sa));
sa.nl_family = AF_NETLINK;
sa.nl_groups = 0xffffffff;
fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_KOBJECT_UEVENT);
fd = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, NETLINK_KOBJECT_UEVENT);
if (fd < 0) {
perror("failed to create netlink socket");
return -1;
Expand Down