From: Jens Axboe Date: Mon, 14 Apr 2014 18:15:35 +0000 (-0600) Subject: stat: warn on failure to detach DU thread X-Git-Tag: fio-2.1.9~32 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=6e5634f1008d9834d828653e6ff75bb3f95728d1 stat: warn on failure to detach DU thread Signed-off-by: Jens Axboe --- 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; }