From cb36b076868496790a1386046c912fa5a2a20866 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 18 Jun 2018 17:14:30 +0300 Subject: 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. --- src/nxt_runtime.h | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'src/nxt_runtime.h') 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); -- cgit