summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_port_memory.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-06-23 19:19:41 +0300
committerMax Romanov <max.romanov@nginx.com>2017-06-23 19:19:41 +0300
commit89ab9a9d054f6bca745cbd91cffa9572672a7110 (patch)
tree04e98e86f5842ddf5ffb09f436b63d1768a3cf03 /src/nxt_port_memory.c
parent0fdcdde6c83511871cebff698a1fe1f930347335 (diff)
downloadunit-89ab9a9d054f6bca745cbd91cffa9572672a7110.tar.gz
unit-89ab9a9d054f6bca745cbd91cffa9572672a7110.tar.bz2
Shorter shared memory name generated.
Diffstat (limited to 'src/nxt_port_memory.c')
-rw-r--r--src/nxt_port_memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_port_memory.c b/src/nxt_port_memory.c
index 83df9f21..50a6dd5a 100644
--- a/src/nxt_port_memory.c
+++ b/src/nxt_port_memory.c
@@ -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->pid = process->pid;
- p = nxt_sprintf(name, name + sizeof(name), "/nginext.%PI.%PT.%D",
- nxt_pid, task->thread->tid, nxt_random(&nxt_random_data));
+ p = nxt_sprintf(name, name + sizeof(name), "/nginext.%PI.%uxD",
+ nxt_pid, nxt_random(&nxt_random_data));
*p = '\0';
#if (NXT_HAVE_MEMFD_CREATE)