From d2235e56057f54fc63ccbf789d4c54f9e99978af Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 20 Oct 2015 09:07:31 -0600 Subject: [PATCH] client: remove duplicated code Signed-off-by: Jens Axboe --- backend.c | 2 +- client.c | 5 ----- fio.h | 1 + 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/backend.c b/backend.c index b1477df8..8fd55359 100644 --- a/backend.c +++ b/backend.c @@ -100,7 +100,7 @@ static void sig_int(int sig) } } -static void sig_show_status(int sig) +void sig_show_status(int sig) { show_running_run_stats(); } diff --git a/client.c b/client.c index 147ee389..005ddf4a 100644 --- a/client.c +++ b/client.c @@ -534,11 +534,6 @@ static void sig_int(int sig) fio_clients_terminate(); } -static void sig_show_status(int sig) -{ - show_running_run_stats(); -} - static void client_signal_handler(void) { struct sigaction act; diff --git a/fio.h b/fio.h index a00e8f23..adf879f3 100644 --- a/fio.h +++ b/fio.h @@ -483,6 +483,7 @@ extern int ioengine_load(struct thread_data *); extern int parse_dryrun(void); extern int fio_running_or_pending_io_threads(void); extern int fio_set_fd_nonblocking(int, const char *); +extern void sig_show_status(int sig); extern uintptr_t page_mask; extern uintptr_t page_size; -- 2.25.1