summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/go/unit/nxt_go_port_memory.c3
-rw-r--r--src/nxt_port_memory.c2
2 files changed, 3 insertions, 2 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)
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';