From e7d81186b59b5e0681a099cc993365961b09752e Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Thu, 19 Oct 2017 17:43:54 +0300 Subject: Fixed controller restarting. Previously, stored configuration wasn't reread on controller process restart, which resulted in segmentation fault. --- src/nxt_process.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/nxt_process.h') 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; }; -- cgit