- /*
- * When called from process exit, we allow this memory map to be
- * released by the OS at exit(), because removing it prior to
- * this can cause a segmentation fault when using the
- * futex_async timer-based fallback. And we cannot join those
- * threads because sys_futex does not react to the cancellation
- * request.
- *
- * So we actually _do_ release it only after a fork, since all
- * threads have vanished anyway.
- */
- if (!exiting && sock_info->wait_shm_mmap) {