summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_process.h
diff options
context:
space:
mode:
authorTiago Natel de Moura <t.nateldemoura@f5.com>2021-11-09 15:48:44 +0300
committerTiago Natel de Moura <t.nateldemoura@f5.com>2021-11-09 15:48:44 +0300
commite207415a78ae67b937faf7e5bcd6e5192993180a (patch)
tree8f26521322b194af7c22134ebd8fdc393e649718 /src/nxt_process.h
parent1de660b6df93c09719361e364211c7c6388c01ce (diff)
downloadunit-e207415a78ae67b937faf7e5bcd6e5192993180a.tar.gz
unit-e207415a78ae67b937faf7e5bcd6e5192993180a.tar.bz2
Introducing application prototype processes.
Diffstat (limited to 'src/nxt_process.h')
-rw-r--r--src/nxt_process.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/nxt_process.h b/src/nxt_process.h
index e4d3c93a..c92eebd8 100644
--- a/src/nxt_process.h
+++ b/src/nxt_process.h
@@ -99,19 +99,26 @@ typedef struct {
struct nxt_process_s {
nxt_pid_t pid;
- const char *name;
- nxt_queue_t ports; /* of nxt_port_t */
+ nxt_queue_t ports; /* of nxt_port_t.link */
nxt_process_state_t state;
nxt_bool_t registered;
nxt_int_t use_count;
nxt_port_mmaps_t incoming;
+
+ nxt_pid_t isolated_pid;
+ const char *name;
+ nxt_port_t *parent_port;
+
uint32_t stream;
nxt_mp_t *mem_pool;
nxt_credential_t *user_cred;
+ nxt_queue_t children; /* of nxt_process_t.link */
+ nxt_queue_link_t link; /* for nxt_process_t.children */
+
nxt_process_data_t data;
nxt_process_isolation_t isolation;