summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_mp.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-07-12 20:32:16 +0300
committerMax Romanov <max.romanov@nginx.com>2017-07-12 20:32:16 +0300
commitb0c1e740cf404f8fed5eed75fddb205ca74314e0 (patch)
tree08dcefc827c5dfb1570b682ea8d1e9abf17a31dc /src/nxt_mp.c
parentc38bcb7d70729434893ae4d5f2f58a78a36d2bd5 (diff)
downloadunit-b0c1e740cf404f8fed5eed75fddb205ca74314e0.tar.gz
unit-b0c1e740cf404f8fed5eed75fddb205ca74314e0.tar.bz2
New process port exchange changed. READY message type introduced.
Application process start request DATA message from router to master. Master notifies router via NEW_PORT message after worker process become ready.
Diffstat (limited to '')
-rw-r--r--src/nxt_mp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nxt_mp.c b/src/nxt_mp.c
index 0b82cf2a..90adcf8d 100644
--- a/src/nxt_mp.c
+++ b/src/nxt_mp.c
@@ -917,7 +917,7 @@ nxt_mp_retain(nxt_mp_t *mp, size_t size)
}
-void
+uint32_t
nxt_mp_release(nxt_mp_t *mp, void *p)
{
nxt_mp_free(mp, p);
@@ -928,7 +928,11 @@ nxt_mp_release(nxt_mp_t *mp, void *p)
if (mp->retain == 0) {
nxt_mp_destroy(mp);
+
+ return 0;
}
+
+ return mp->retain;
}