aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/server.c
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-06-13 02:16:28 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-06-13 02:24:02 +0200
commitb6564992c1c85d3d36edf9b6ec397fa40c36d7ce (patch)
treeb34a048a2343bb8b82d1f1a4e510cec340838af8 /src/server.c
parentsanitize #include-s (diff)
downloadcimple-b6564992c1c85d3d36edf9b6ec397fa40c36d7ce.tar.gz
cimple-b6564992c1c85d3d36edf9b6ec397fa40c36d7ce.zip
signal: refactoring
Diffstat (limited to 'src/server.c')
-rw-r--r--src/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.c b/src/server.c
index 2839a61..39a4aa3 100644
--- a/src/server.c
+++ b/src/server.c
@@ -318,7 +318,7 @@ int server_create(struct server **_server, 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;
server->signalfd = ret;