configure: add gettid() test
[fio.git] / diskutil.c
index 5b4eb46dfe46990d091f135bed3c1f9ba10eb67e..7be4c022431e1a0b823332f233d0159f07876ba4 100644 (file)
@@ -701,7 +701,7 @@ void show_disk_util(int terse, struct json_object *parent,
        struct disk_util *du;
        bool do_json;
 
-       if (!disk_util_sem)
+       if (!is_running_backend())
                return;
 
        fio_sem_down(disk_util_sem);