summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_process.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2018-06-18 17:14:30 +0300
committerIgor Sysoev <igor@sysoev.ru>2018-06-18 17:14:30 +0300
commitcb36b076868496790a1386046c912fa5a2a20866 (patch)
tree6aa34fd5ae23168b5eb3e4f1506323dc10607774 /src/nxt_process.c
parent6273819080584460db7a7a65fc69c3f92a84b05b (diff)
downloadunit-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_process.c')
-rw-r--r--src/nxt_process.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nxt_process.c b/src/nxt_process.c
index beb33f63..3f9de6fb 100644
--- a/src/nxt_process.c
+++ b/src/nxt_process.c
@@ -62,8 +62,6 @@ nxt_process_create(nxt_task_t *task, nxt_process_t *process)
process->pid = nxt_pid;
- rt->types = 0;
-
ptype = process->init->type;
nxt_port_reset_next_id();
@@ -149,7 +147,7 @@ nxt_process_start(nxt_task_t *task, nxt_process_t *process)
rt = thread->runtime;
- rt->types |= (1U << init->type);
+ rt->type = init->type;
engine = thread->engine;