Shorter shared memory name generated.

This commit is contained in:
Max Romanov
2017-06-23 19:19:41 +03:00
parent 0fdcdde6c8
commit 89ab9a9d05

View File

@@ -287,8 +287,8 @@ nxt_port_new_port_mmap(nxt_task_t *task, nxt_process_t *process,
port_mmap->id = process->outgoing->nelts - 1; port_mmap->id = process->outgoing->nelts - 1;
port_mmap->pid = process->pid; port_mmap->pid = process->pid;
p = nxt_sprintf(name, name + sizeof(name), "/nginext.%PI.%PT.%D", p = nxt_sprintf(name, name + sizeof(name), "/nginext.%PI.%uxD",
nxt_pid, task->thread->tid, nxt_random(&nxt_random_data)); nxt_pid, nxt_random(&nxt_random_data));
*p = '\0'; *p = '\0';
#if (NXT_HAVE_MEMFD_CREATE) #if (NXT_HAVE_MEMFD_CREATE)