aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/tcp_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/tcp_server.c
parentsanitize #include-s (diff)
downloadcimple-b6564992c1c85d3d36edf9b6ec397fa40c36d7ce.tar.gz
cimple-b6564992c1c85d3d36edf9b6ec397fa40c36d7ce.zip
signal: refactoring
Diffstat (limited to 'src/tcp_server.c')
-rw-r--r--src/tcp_server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tcp_server.c b/src/tcp_server.c
index 59790b8..d763a53 100644
--- a/src/tcp_server.c
+++ b/src/tcp_server.c
@@ -70,7 +70,7 @@ static void *connection_thread(void *_ctx)
/* Let the child thread handle its signals except those that should be
* handled in the main thread. */
- ret = signal_block_stops();
+ ret = signal_block_sigterms();
if (ret < 0)
goto free_ctx;
@@ -113,7 +113,7 @@ static int create_connection_thread(int fd, tcp_server_conn_handler conn_handler
restore_mask:
/* Restore the previously-enabled signals for handling in the main thread. */
- signal_restore(&old_mask);
+ signal_set_mask(&old_mask);
return ret;