diff options
author | Igor Sysoev <igor@sysoev.ru> | 2018-06-18 17:14:30 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2018-06-18 17:14:30 +0300 |
commit | cb36b076868496790a1386046c912fa5a2a20866 (patch) | |
tree | 6aa34fd5ae23168b5eb3e4f1506323dc10607774 /src/nxt_runtime.h | |
parent | 6273819080584460db7a7a65fc69c3f92a84b05b (diff) | |
download | unit-cb36b076868496790a1386046c912fa5a2a20866.tar.gz unit-cb36b076868496790a1386046c912fa5a2a20866.tar.bz2 |
Removing Unix control socket on start failure.
The bug had appeared in 5cc5002a788e when process type has been
converted to bitmask. This commit reverts the type back to a number.
This commit is related to #131 issue on GitHub.
Diffstat (limited to 'src/nxt_runtime.h')
-rw-r--r-- | src/nxt_runtime.h | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/nxt_runtime.h b/src/nxt_runtime.h index d0546e63..c23e4bce 100644 --- a/src/nxt_runtime.h +++ b/src/nxt_runtime.h @@ -43,7 +43,7 @@ struct nxt_runtime_s { uint32_t last_engine_id; - uint32_t types; /* bitset of nxt_process_type_t */ + nxt_process_type_t type; nxt_timer_t timer; @@ -83,20 +83,6 @@ nxt_int_t nxt_runtime_thread_pool_create(nxt_thread_t *thr, nxt_runtime_t *rt, nxt_uint_t max_threads, nxt_nsec_t timeout); -nxt_inline nxt_bool_t -nxt_runtime_is_type(nxt_runtime_t *rt, nxt_process_type_t type) -{ - return (rt->types & (1U << type)) != 0; -} - - -nxt_inline nxt_bool_t -nxt_runtime_is_main(nxt_runtime_t *rt) -{ - return nxt_runtime_is_type(rt, NXT_PROCESS_MAIN); -} - - nxt_process_t *nxt_runtime_process_new(nxt_runtime_t *rt); nxt_process_t *nxt_runtime_process_get(nxt_runtime_t *rt, nxt_pid_t pid); |