From 1de2aaa4001eb2d0ddfc4f86ab2c2a3eebdc9841 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 26 Aug 2022 05:51:53 +0200 Subject: worker: allow graceful shutdowns Well, maybe "graceful" is a strong word, but now you _can_ do ./server & ./worker & ./client ci_run URL REV && kill "$( pidof worker )" and the worker will wait for the CI run to complete. --- src/worker_main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/worker_main.c') diff --git a/src/worker_main.c b/src/worker_main.c index d88071d..b5ccd51 100644 --- a/src/worker_main.c +++ b/src/worker_main.c @@ -1,4 +1,5 @@ #include "const.h" +#include "signal.h" #include "worker.h" #include -- cgit v1.2.3