diff options
author | Igor Sysoev <igor@sysoev.ru> | 2018-06-18 17:14:32 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2018-06-18 17:14:32 +0300 |
commit | 3ad1acca12400f43e14e49add2ce500f38095fb1 (patch) | |
tree | a5672776ac503710caf5a1ab59ba779bb6ee3d60 /src/nxt_runtime.h | |
parent | cb36b076868496790a1386046c912fa5a2a20866 (diff) | |
download | unit-3ad1acca12400f43e14e49add2ce500f38095fb1.tar.gz unit-3ad1acca12400f43e14e49add2ce500f38095fb1.tar.bz2 |
Fixed exit status on start failure.
This and previous commit close #131 issue on GitHub.
Diffstat (limited to 'src/nxt_runtime.h')
-rw-r--r-- | src/nxt_runtime.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nxt_runtime.h b/src/nxt_runtime.h index c23e4bce..dbad16b0 100644 --- a/src/nxt_runtime.h +++ b/src/nxt_runtime.h @@ -9,7 +9,7 @@ #define _NXT_RUNTIME_H_INCLUDED_ -typedef void (*nxt_runtime_cont_t)(nxt_task_t *task); +typedef void (*nxt_runtime_cont_t)(nxt_task_t *task, nxt_uint_t status); struct nxt_runtime_s { @@ -49,6 +49,8 @@ struct nxt_runtime_s { uint8_t daemon; uint8_t batch; + uint8_t status; + const char *engine; uint32_t engine_connections; uint32_t auxiliary_threads; @@ -75,7 +77,7 @@ typedef nxt_int_t (*nxt_module_init_t)(nxt_thread_t *thr, nxt_runtime_t *rt); nxt_int_t nxt_runtime_create(nxt_task_t *task); -void nxt_runtime_quit(nxt_task_t *task); +void nxt_runtime_quit(nxt_task_t *task, nxt_uint_t status); void nxt_runtime_event_engine_free(nxt_runtime_t *rt); |