[PATCH] Make fio_assert() core dump the job

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/fio.h b/fio.h
index c15232a..b420db5 100644
--- a/fio.h
+++ b/fio.h
@@ -672,10 +672,11 @@
 
 #define fio_assert(td, cond)	do {	\
 	if (!(cond)) {			\
+		int *__foo = NULL;	\
 		fprintf(stderr, "file:%s:%d, assert %s failed\n", __FILE__, __LINE__, #cond);	\
 		(td)->runstate = TD_EXITED;	\
 		(td)->error = EFAULT;		\
-		exit(0);			\
+		*__foo = 0;			\
 	}	\
 } while (0)