commit | 9bf27b4530fca07088ab978aea47be79a3d48879 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Tue Mar 27 19:49:31 2007 +0200 |
committer | Jens Axboe <jens.axboe@oracle.com> | Tue Mar 27 19:49:31 2007 +0200 |
tree | 4d1ade03dc9e0edd0006d0989608a83f3330e938 | |
parent | 0ddb270c21adffa45cd9d215f29aafd8a9c5b15a [diff] [blame] |
Auto limit open files if we get EMFILE Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/fio.h b/fio.h index 1b8a66d..76d7ea4 100644 --- a/fio.h +++ b/fio.h
@@ -865,4 +865,10 @@ } \ } while (0) +static inline void clear_error(struct thread_data *td) +{ + td->error = 0; + td->verror[0] = '\0'; +} + #endif