summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_port_memory.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2018-01-11 17:13:58 +0300
committerIgor Sysoev <igor@sysoev.ru>2018-01-11 17:13:58 +0300
commitc105988e5102eefd91fa8336848e926ebbb42a5b (patch)
treed18b439278ed314ed37cb41f04cdef6d4062d7d2 /src/nxt_port_memory.c
parentf7bc2e1560c2bbbd899b22a54837f09ccb582609 (diff)
downloadunit-c105988e5102eefd91fa8336848e926ebbb42a5b.tar.gz
unit-c105988e5102eefd91fa8336848e926ebbb42a5b.tar.bz2
Fixed DragonFly BSD shared memory implementation.
Diffstat (limited to '')
-rw-r--r--src/nxt_port_memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_port_memory.c b/src/nxt_port_memory.c
index 7be4347a..b3bfb7e2 100644
--- a/src/nxt_port_memory.c
+++ b/src/nxt_port_memory.c
@@ -280,7 +280,7 @@ nxt_port_new_port_mmap(nxt_task_t *task, nxt_process_t *process,
return NULL;
}
- p = nxt_sprintf(name, name + sizeof(name), "/unit.%PI.%uxD",
+ p = nxt_sprintf(name, name + sizeof(name), NXT_SHM_PREFIX "unit.%PI.%uxD",
nxt_pid, nxt_random(&task->thread->random));
*p = '\0';