aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/worker.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/worker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/worker.c b/src/worker.c
index 8ecaed8..8b2af56 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -151,7 +151,7 @@ int worker_create(struct worker **_worker, const struct settings *settings)
if (ret < 0)
goto destroy_cmd_dispatcher;
- ret = signalfd_listen_for_stops();
+ ret = signalfd_create_sigterms();
if (ret < 0)
goto destroy_event_loop;
worker->signalfd = ret;