aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/worker_util.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-09-17 10:36:07 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-09-17 10:36:07 +0100
commit3e23c6b1128023a94a440b118eabf8df5b33090f (patch)
tree300824b9de818e5f4ddbcb64d1bb8b0d73a1a567 /src/libserver/worker_util.h
parent609d4f862202c43241fdab06b0795db6281ca3f7 (diff)
downloadrspamd-3e23c6b1128023a94a440b118eabf8df5b33090f.tar.gz
rspamd-3e23c6b1128023a94a440b118eabf8df5b33090f.zip
[Feature] Improve subprocesses termination handle
Diffstat (limited to 'src/libserver/worker_util.h')
-rw-r--r--src/libserver/worker_util.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libserver/worker_util.h b/src/libserver/worker_util.h
index d8decbac8..3af9c961d 100644
--- a/src/libserver/worker_util.h
+++ b/src/libserver/worker_util.h
@@ -31,6 +31,12 @@ struct rspamd_worker;
struct rspamd_worker_signal_handler;
/**
+ * Init basic signals for a worker
+ * @param worker
+ * @param base
+ */
+void rspamd_worker_init_signals (struct rspamd_worker *worker, struct event_base *base);
+/**
* Prepare worker's startup
* @param worker worker structure
* @param name name of the worker
@@ -124,6 +130,11 @@ void rspamd_worker_stop_accept (struct rspamd_worker *worker);
void rspamd_worker_block_signals (void);
/**
+ * Unblock signals
+ */
+void rspamd_worker_unblock_signals (void);
+
+/**
* Kill rspamd main and all workers
* @param rspamd_main
*/