mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Open network module eventfd as close-on-exec
Ensures that it is not leaked to child processes.
This commit is contained in:
parent
df65cab17a
commit
6163be687d
@ -188,7 +188,7 @@ void waybar::modules::Network::createEventSocket() {
|
||||
throw std::runtime_error("Can't create epoll");
|
||||
}
|
||||
{
|
||||
ev_fd_ = eventfd(0, EFD_NONBLOCK);
|
||||
ev_fd_ = eventfd(0, EFD_NONBLOCK|EFD_CLOEXEC);
|
||||
struct epoll_event event;
|
||||
memset(&event, 0, sizeof(event));
|
||||
event.events = EPOLLIN | EPOLLET;
|
||||
|
Loading…
Reference in New Issue
Block a user