aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/worker.c
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-05-06 14:07:00 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-05-06 14:07:27 +0200
commit6abf7fc4f8ab149ab97b4670192b869183a73f23 (patch)
tree0518827057c765e99525599745719dae80952b39 /src/worker.c
parentDockerfile: refactoring (diff)
downloadcimple-6abf7fc4f8ab149ab97b4670192b869183a73f23.tar.gz
cimple-6abf7fc4f8ab149ab97b4670192b869183a73f23.zip
get rid of __attribute__((constructor))
Explicit is better than implicit.
Diffstat (limited to '')
-rw-r--r--src/worker.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/worker.c b/src/worker.c
index cf57ad6..05243ac 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -181,6 +181,10 @@ int worker_main(struct worker *worker, UNUSED int argc, UNUSED char *argv[])
{
int ret = 0;
+ ret = signal_install_global_handler();
+ if (ret < 0)
+ return ret;
+
ret = msg_send_new_worker(worker);
if (ret < 0)
return ret;