From: Jens Axboe Date: Tue, 20 Oct 2015 15:07:31 +0000 (-0600) Subject: client: remove duplicated code X-Git-Tag: fio-2.2.11~19 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=d2235e56057f54fc63ccbf789d4c54f9e99978af client: remove duplicated code Signed-off-by: Jens Axboe --- 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;