Exit with error on signal
authorJens Axboe <jaxboe@fusionio.com>
Thu, 5 May 2011 14:17:03 +0000 (08:17 -0600)
committerJens Axboe <jaxboe@fusionio.com>
Thu, 5 May 2011 14:17:03 +0000 (08:17 -0600)
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
fio.c

diff --git a/fio.c b/fio.c
index a737a31..284e9f2 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -126,6 +126,7 @@ static void sig_int(int sig)
        if (threads) {
                log_info("\nfio: terminating on signal %d\n", sig);
                fflush(stdout);
+               exit_value = 128;
                terminate_threads(TERMINATE_ALL);
        }
 }