mirror of
https://github.com/rad4day/Waybar.git
synced 2025-09-16 15:32:32 +02:00
refactor: style issue
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
Reference in New Issue
Block a user