Deleted
Added
nxt_port_memory.c (128:cfa3a5ce7f2f) | nxt_port_memory.c (138:59fc46dd5e1d) |
---|---|
1 2/* 3 * Copyright (C) Max Romanov 4 * Copyright (C) NGINX, Inc. 5 */ 6 7#include <nxt_main.h> 8 --- 203 unchanged lines hidden (view full) --- 212 if (nxt_slow_path(port_mmap == NULL)) { 213 nxt_log(task, NXT_LOG_WARN, 214 "failed to add port mmap to outgoing array"); 215 216 return NULL; 217 } 218 219 p = nxt_sprintf(name, name + sizeof(name), "/nginext.%PI.%uxD", | 1 2/* 3 * Copyright (C) Max Romanov 4 * Copyright (C) NGINX, Inc. 5 */ 6 7#include <nxt_main.h> 8 --- 203 unchanged lines hidden (view full) --- 212 if (nxt_slow_path(port_mmap == NULL)) { 213 nxt_log(task, NXT_LOG_WARN, 214 "failed to add port mmap to outgoing array"); 215 216 return NULL; 217 } 218 219 p = nxt_sprintf(name, name + sizeof(name), "/nginext.%PI.%uxD", |
220 nxt_pid, nxt_random(&nxt_random_data)); | 220 nxt_pid, nxt_random(&task->thread->random)); |
221 *p = '\0'; 222 223#if (NXT_HAVE_MEMFD_CREATE) 224 fd = syscall(SYS_memfd_create, name, MFD_CLOEXEC); 225 226 if (nxt_slow_path(fd == -1)) { 227 nxt_log(task, NXT_LOG_CRIT, "memfd_create(%s) failed %E", 228 name, nxt_errno); --- 486 unchanged lines hidden --- | 221 *p = '\0'; 222 223#if (NXT_HAVE_MEMFD_CREATE) 224 fd = syscall(SYS_memfd_create, name, MFD_CLOEXEC); 225 226 if (nxt_slow_path(fd == -1)) { 227 nxt_log(task, NXT_LOG_CRIT, "memfd_create(%s) failed %E", 228 name, nxt_errno); --- 486 unchanged lines hidden --- |