[PATCH] Make the exit value meaningfull
[fio.git] / fio.h
diff --git a/fio.h b/fio.h
index c0b92a6c6671b3afda65b5fca4499dd6eea71b6c..c15232a214e6919cfae4e43b0ef452c8d5e52cc9 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -674,6 +674,7 @@ extern void close_ioengine(struct thread_data *);
        if (!(cond)) {                  \
                fprintf(stderr, "file:%s:%d, assert %s failed\n", __FILE__, __LINE__, #cond);   \
                (td)->runstate = TD_EXITED;     \
        if (!(cond)) {                  \
                fprintf(stderr, "file:%s:%d, assert %s failed\n", __FILE__, __LINE__, #cond);   \
                (td)->runstate = TD_EXITED;     \
+               (td)->error = EFAULT;           \
                exit(0);                        \
        }       \
 } while (0)
                exit(0);                        \
        }       \
 } while (0)