aboutsummaryrefslogtreecommitdiff
path: root/swaybar/status_line.c
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2018-10-14 12:28:38 +1000
committerFurkan Sahin <furkan-dev@proton.me>2018-10-14 12:28:38 +1000
commit20f69ce714b6ae91803ca011527e999951f77ccc (patch)
tree0cbafde1d61ba4282e3ca73b4a312b9e82db25f9 /swaybar/status_line.c
parent875bf61c4c1046904d9c8490b641f9c77ef7d568 (diff)
Remove timerfd from loop implementation
timerfd doesn't work on the BSDs, so this replaces it with a timespec for the expiry and uses a poll timeout to check the timers when needed.
Diffstat (limited to 'swaybar/status_line.c')
-rw-r--r--swaybar/status_line.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/status_line.c b/swaybar/status_line.c
index 3f7a386f..65d6c052 100644
--- a/swaybar/status_line.c
+++ b/swaybar/status_line.c
@@ -16,7 +16,7 @@
static void status_line_close_fds(struct status_line *status) {
if (status->read_fd != -1) {
- loop_remove_event(status->bar->eventloop, status->bar->status_event);
+ loop_remove_fd(status->bar->eventloop, status->read_fd);
close(status->read_fd);
status->read_fd = -1;
}