Added support for shm_open(SHM_ANON) extension.
This commit is contained in:
@@ -64,6 +64,18 @@ nxt_go_new_port_mmap(nxt_go_process_t *process, nxt_port_id_t id,
|
||||
|
||||
nxt_go_debug("memfd_create(%s): %d", name, fd);
|
||||
|
||||
#elif (NXT_HAVE_SHM_OPEN_ANON)
|
||||
|
||||
fd = shm_open(SHM_ANON, O_RDWR, S_IRUSR | S_IWUSR);
|
||||
|
||||
nxt_go_debug("shm_open(SHM_ANON): %d", fd);
|
||||
|
||||
if (nxt_slow_path(fd == -1)) {
|
||||
nxt_go_warn("shm_open(SHM_ANON) failed %d", errno);
|
||||
|
||||
goto remove_fail;
|
||||
}
|
||||
|
||||
#elif (NXT_HAVE_SHM_OPEN)
|
||||
|
||||
/* Just in case. */
|
||||
|
||||
Reference in New Issue
Block a user