diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-09-17 10:36:07 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-09-17 10:36:07 +0100 |
commit | 3e23c6b1128023a94a440b118eabf8df5b33090f (patch) | |
tree | 300824b9de818e5f4ddbcb64d1bb8b0d73a1a567 /src/libserver/worker_util.h | |
parent | 609d4f862202c43241fdab06b0795db6281ca3f7 (diff) | |
download | rspamd-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.h | 11 |
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 */ |