aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/worker.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/worker.c')
-rw-r--r--src/worker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/worker.c b/src/worker.c
index 725fad7..03a83c6 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -153,8 +153,8 @@ int worker_create(struct worker **_worker, const struct settings *settings)
goto destroy_event_loop;
worker->signalfd = ret;
- ret = signalfd_add_to_event_loop(worker->signalfd, worker->event_loop, worker_set_stopping,
- worker);
+ ret = event_loop_add(worker->event_loop, worker->signalfd, POLLIN, worker_set_stopping,
+ worker);
if (ret < 0)
goto close_signalfd;