summaryrefslogtreecommitdiffhomepage
path: root/src/go/unit
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/go/unit
parentf7bc2e1560c2bbbd899b22a54837f09ccb582609 (diff)
downloadunit-c105988e5102eefd91fa8336848e926ebbb42a5b.tar.gz
unit-c105988e5102eefd91fa8336848e926ebbb42a5b.tar.bz2
Fixed DragonFly BSD shared memory implementation.
Diffstat (limited to 'src/go/unit')
-rw-r--r--src/go/unit/nxt_go_port_memory.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/go/unit/nxt_go_port_memory.c b/src/go/unit/nxt_go_port_memory.c
index a919d6cd..7a226672 100644
--- a/src/go/unit/nxt_go_port_memory.c
+++ b/src/go/unit/nxt_go_port_memory.c
@@ -49,7 +49,8 @@ nxt_go_new_port_mmap(nxt_go_process_t *process, nxt_port_id_t id,
return NULL;
}
- name_len = snprintf(name, sizeof(name) - 1, "/unit.go.%p", name);
+ name_len = snprintf(name, sizeof(name) - 1,
+ NXT_SHM_PREFIX "unit.go.%p", name);
#if (NXT_HAVE_MEMFD_CREATE)