From 6e5634f1008d9834d828653e6ff75bb3f95728d1 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 14 Apr 2014 12:15:35 -0600 Subject: [PATCH] stat: warn on failure to detach DU thread Signed-off-by: Jens Axboe --- stat.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stat.c b/stat.c index 1ef88ddf..fbf0118c 100644 --- a/stat.c +++ b/stat.c @@ -1471,7 +1471,12 @@ void show_running_run_stats(void) fio_mutex_down(stat_mutex); if (!pthread_create(&thread, NULL, __show_running_run_stats, NULL)) { - pthread_detach(thread); + int err; + + err = pthread_detach(thread); + if (err) + log_err("fio: DU thread detach failed: %s\n", strerror(err)); + return; } -- 2.25.1