Add runtime handlers for 97900ebf for FreeBSD/DragonFlyBSD
[fio.git] / init.c
diff --git a/init.c b/init.c
index fabc887b06c75c737e8eb49632f8bebe11e28c47..acdc659879b42656f593ab6dbfc3ad83f36bc041 100644 (file)
--- a/init.c
+++ b/init.c
@@ -356,9 +356,8 @@ static int setup_thread_area(void)
                perror("shmat");
                return 1;
        }
-#ifdef FIO_HAVE_SHM_ATTACH_REMOVED
-       shmctl(shm_id, IPC_RMID, NULL);
-#endif
+       if (shm_attach_to_open_removed())
+               shmctl(shm_id, IPC_RMID, NULL);
 #endif
 
        memset(threads, 0, max_jobs * sizeof(struct thread_data));