summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_process.h
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@gmail.com>2022-02-17 12:33:46 +0000
committerAndrew Clayton <andrew@digital-domain.net>2022-08-11 13:33:46 +0100
commit900828cc4b92e95b4810c00df9759ab9a07429c7 (patch)
tree2011d9fa7a2c7c91fda1f27db01c0db6adf0d21e /src/nxt_process.h
parentd37b76232e9b513d109e61e4d5cb562541ed935c (diff)
downloadunit-900828cc4b92e95b4810c00df9759ab9a07429c7.tar.gz
unit-900828cc4b92e95b4810c00df9759ab9a07429c7.tar.bz2
Fixing isolated process PID manipulation.
Registering an isolated PID in the global PID hash is wrong because it can be duplicated. Isolated processes are stored only in the children list until the response for the WHOAMI message is processed and the global PID is discovered. To remove isolated siblings, a pointer to the children list is introduced in the nxt_process_init_t struct. This closes #633 issue on GitHub.
Diffstat (limited to '')
-rw-r--r--src/nxt_process.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nxt_process.h b/src/nxt_process.h
index 642c3419..15fd4e7f 100644
--- a/src/nxt_process.h
+++ b/src/nxt_process.h
@@ -148,6 +148,8 @@ typedef struct {
const nxt_port_handlers_t *port_handlers;
const nxt_sig_event_t *signals;
+
+ nxt_queue_t *siblings;
} nxt_process_init_t;