diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-20 12:38:45 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-20 12:39:09 +0000 |
commit | 86f76528fa2b3c3603c649835bbc4d0a21ed0a4d (patch) | |
tree | cf0606bf90fd4689af317f03ee85fc7e49a0c04b /src/libserver/worker_util.h | |
parent | 08a441f3b5b1ee1ba02a999a552e54725ad1138a (diff) | |
download | rspamd-86f76528fa2b3c3603c649835bbc4d0a21ed0a4d.tar.gz rspamd-86f76528fa2b3c3603c649835bbc4d0a21ed0a4d.zip |
[Fix] Do not leave parent-less workers processes on fatal errors
Diffstat (limited to 'src/libserver/worker_util.h')
-rw-r--r-- | src/libserver/worker_util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libserver/worker_util.h b/src/libserver/worker_util.h index 2ad312b0e..634ffe67b 100644 --- a/src/libserver/worker_util.h +++ b/src/libserver/worker_util.h @@ -124,6 +124,12 @@ void rspamd_worker_stop_accept (struct rspamd_worker *worker); void rspamd_worker_block_signals (void); /** + * Kill rspamd main and all workers + * @param rspamd_main + */ +void rspamd_hard_terminate (struct rspamd_main *rspamd_main) G_GNUC_NORETURN; + +/** * Fork new worker with the specified configuration */ struct rspamd_worker *rspamd_fork_worker (struct rspamd_main *, |