summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_process.h
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2017-10-19 17:43:54 +0300
committerValentin Bartenev <vbart@nginx.com>2017-10-19 17:43:54 +0300
commite7d81186b59b5e0681a099cc993365961b09752e (patch)
tree2b38773383415eb247c974fa122f44bfe8a9f42e /src/nxt_process.h
parentfc6520d722d939230b8f9652dfc0a3040622d3df (diff)
downloadunit-e7d81186b59b5e0681a099cc993365961b09752e.tar.gz
unit-e7d81186b59b5e0681a099cc993365961b09752e.tar.bz2
Fixed controller restarting.
Previously, stored configuration wasn't reread on controller process restart, which resulted in segmentation fault.
Diffstat (limited to 'src/nxt_process.h')
-rw-r--r--src/nxt_process.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nxt_process.h b/src/nxt_process.h
index c2a011ef..1a36d9df 100644
--- a/src/nxt_process.h
+++ b/src/nxt_process.h
@@ -23,6 +23,8 @@ typedef struct {
typedef struct nxt_process_init_s nxt_process_init_t;
typedef nxt_int_t (*nxt_process_start_t)(nxt_task_t *task, void *data);
+typedef nxt_int_t (*nxt_process_restart_t)(nxt_task_t *task, nxt_runtime_t *rt,
+ nxt_process_init_t *init);
struct nxt_process_init_s {
@@ -38,7 +40,7 @@ struct nxt_process_init_s {
void *data;
uint32_t stream;
- nxt_bool_t restart;
+ nxt_process_restart_t restart;
};