commit | 340fd243a168d881dd80b45f2ffb424287db8b7e | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Tue Feb 13 20:09:10 2007 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Tue Feb 13 20:09:10 2007 +0100 |
tree | d85718f3eeab0d805c77d7d645bf7a03df9628e2 | |
parent | a4a81712f0bd76cbde8898c0b87faedbaa1d2da1 [diff] [blame] |
[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)