refactor: style issue

This commit is contained in:
Alexis
2018-08-18 15:05:18 +02:00
parent b1fd4d7b82
commit 27dfffa4e3
7 changed files with 7 additions and 12 deletions

View File

@ -16,7 +16,7 @@ waybar::modules::Battery::Battery(Json::Value config)
if (batteries_.empty()) {
throw std::runtime_error("No batteries.");
}
auto fd = inotify_init();
auto fd = inotify_init1(IN_CLOEXEC);
if (fd == -1) {
throw std::runtime_error("Unable to listen batteries.");
}