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:
@@ -433,7 +433,7 @@ nxt_runtime_quit(nxt_task_t *task)
|
||||
done = 0;
|
||||
}
|
||||
|
||||
if (nxt_runtime_is_main(rt)) {
|
||||
if (rt->type == NXT_PROCESS_MAIN) {
|
||||
nxt_main_stop_worker_processes(task, rt);
|
||||
done = 0;
|
||||
}
|
||||
@@ -490,7 +490,7 @@ nxt_runtime_exit(nxt_task_t *task, void *obj, void *data)
|
||||
return;
|
||||
}
|
||||
|
||||
if (nxt_runtime_is_main(rt)) {
|
||||
if (rt->type == NXT_PROCESS_MAIN) {
|
||||
if (rt->pid_file != NULL) {
|
||||
nxt_file_delete(rt->pid_file);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user