Check for ENOSPC on shmget() failure
[fio.git] / init.c
diff --git a/init.c b/init.c
index da1f472db35111b806539fe38359aa19103bd2ed..b3215f52fca3ebb2306c5e02e8437aac0a6d57fa 100644 (file)
--- a/init.c
+++ b/init.c
@@ -254,7 +254,7 @@ static int setup_thread_area(void)
                shm_id = shmget(0, size, IPC_CREAT | 0600);
                if (shm_id != -1)
                        break;
-               if (errno != EINVAL && errno != ENOMEM) {
+               if (errno != EINVAL && errno != ENOMEM && errno != ENOSPC) {
                        perror("shmget");
                        break;
                }