Commit 0d83d9dc authored by Hanspeter Portner's avatar Hanspeter Portner

Merge commit '780258cb'

parents 50c9d162 780258cb
Pipeline #22268601 passed with stages
in 22 minutes and 38 seconds
...@@ -387,7 +387,6 @@ _xpress_shm_init() ...@@ -387,7 +387,6 @@ _xpress_shm_init()
|| ((xpress_shm = mmap(NULL, total_size, PROT_READ | PROT_WRITE, || ((xpress_shm = mmap(NULL, total_size, PROT_READ | PROT_WRITE,
MAP_SHARED, fd, 0)) == MAP_FAILED) ) MAP_SHARED, fd, 0)) == MAP_FAILED) )
{ {
shm_unlink(XPRESS_SHM_ID);
close(fd); close(fd);
return NULL; return NULL;
} }
...@@ -410,7 +409,6 @@ _xpress_shm_deinit(xpress_shm_t *xpress_shm) ...@@ -410,7 +409,6 @@ _xpress_shm_deinit(xpress_shm_t *xpress_shm)
const size_t total_size = sizeof(xpress_shm_t); const size_t total_size = sizeof(xpress_shm_t);
munmap(xpress_shm, total_size); munmap(xpress_shm, total_size);
shm_unlink(XPRESS_SHM_ID);
#else #else
(void)xpress_shm; (void)xpress_shm;
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment