summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_runtime.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-06-23 19:20:08 +0300
committerMax Romanov <max.romanov@nginx.com>2017-06-23 19:20:08 +0300
commit83088a0f4bdbe321c42e7cf0b18e2a9cc897b068 (patch)
tree97ef3d9e5d076f40ed6235d91d25f77921fa8af6 /src/nxt_runtime.c
parentabe0d333294248ea654a4f8467d946a6b761b9d7 (diff)
downloadunit-83088a0f4bdbe321c42e7cf0b18e2a9cc897b068.tar.gz
unit-83088a0f4bdbe321c42e7cf0b18e2a9cc897b068.tar.bz2
Incoming and outgoing port_mmap arrays are protected with mutexes.
Diffstat (limited to 'src/nxt_runtime.c')
-rw-r--r--src/nxt_runtime.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nxt_runtime.c b/src/nxt_runtime.c
index b4177bf0..4d69ecd0 100644
--- a/src/nxt_runtime.c
+++ b/src/nxt_runtime.c
@@ -1473,6 +1473,9 @@ nxt_runtime_process_new(nxt_runtime_t *rt)
/* TODO each process should have it's own mem_pool for ports allocation */
process->mem_pool = rt->mem_pool;
+ nxt_thread_mutex_create(&process->incoming_mutex);
+ nxt_thread_mutex_create(&process->outgoing_mutex);
+
return process;
}