From 55bc972818cdec46f47633da62758e4dcdb6f3f6 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 22 Feb 2007 11:30:05 +0100 Subject: [PATCH] Disable timeout handling for now It needs to get some more testing. It appears to work fine, just want to be a little cautious. Signed-off-by: Jens Axboe --- io_u.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/io_u.c b/io_u.c index 4f17decd..c9389600 100644 --- a/io_u.c +++ b/io_u.c @@ -583,6 +583,7 @@ void io_u_queued(struct thread_data *td, struct io_u *io_u) add_slat_sample(td, io_u->ddir, slat_time); } +#ifdef FIO_USE_TIMEOUT void io_u_set_timeout(struct thread_data *td) { assert(td->cur_depth); @@ -594,7 +595,13 @@ void io_u_set_timeout(struct thread_data *td) setitimer(ITIMER_REAL, &td->timer, NULL); fio_gettime(&td->timeout_end, NULL); } +#else +void io_u_set_timeout(struct thread_data fio_unused *td) +{ +} +#endif +#ifdef FIO_USE_TIMEOUT static void io_u_timeout_handler(int fio_unused sig) { struct thread_data *td, *__td; @@ -628,8 +635,11 @@ static void io_u_timeout_handler(int fio_unused sig) td->error = ETIMEDOUT; exit(1); } +#endif void io_u_init_timeout(void) { +#ifdef FIO_USE_TIMEOUT signal(SIGALRM, io_u_timeout_handler); +#endif } -- 2.25.1