Fixed DragonFly BSD shared memory implementation.

This commit is contained in:
Igor Sysoev
2018-01-11 17:13:58 +03:00
parent f7bc2e1560
commit c105988e51
6 changed files with 74 additions and 4 deletions

View File

@@ -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)

View File

@@ -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';