feat: output configuration

This commit is contained in:
Alex
2019-02-01 21:45:59 +01:00
parent 4d3c2191cb
commit 0ddcf26a45
4 changed files with 66 additions and 7 deletions

View File

@ -65,7 +65,7 @@ void waybar::modules::Network::createInfoSocket()
}
nl_socket_disable_seq_check(info_sock_);
nl_socket_set_nonblocking(info_sock_);
nl_socket_modify_cb(info_sock_, NL_CB_MSG_IN, NL_CB_CUSTOM, handleEvents, this);
nl_socket_modify_cb(info_sock_, NL_CB_VALID, NL_CB_CUSTOM, handleEvents, this);
efd_ = epoll_create1(0);
if (efd_ < 0) {
throw std::runtime_error("Can't create epoll");