projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
shm: have os remove shared memory if fio dies unexpectedly
[fio.git]
/
init.c
diff --git
a/init.c
b/init.c
index c3cc3e54a38f514804a3b095c175f2a23e9b32ff..34ed20f19ad0f6257703f089e3acf0fa528ace67 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-356,6
+356,9
@@
static int setup_thread_area(void)
perror("shmat");
return 1;
}
+#ifdef FIO_HAVE_SHM_ATTACH_REMOVED
+ shmctl(shm_id, IPC_RMID, NULL);
+#endif
#endif
memset(threads, 0, max_jobs * sizeof(struct thread_data));