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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user