backend: make it clear that we passed 'fd' to the new thread
[fio.git] / backend.c
index 7cf9b382703ecac53d4998d56951b15b40c12ddf..10eb90e2e7df06a9516fbab11b7b812e62e631e3 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -2318,6 +2318,7 @@ reap:
                                        nr_started--;
                                        break;
                                }
                                        nr_started--;
                                        break;
                                }
+                               fd = NULL;
                                ret = pthread_detach(td->thread);
                                if (ret)
                                        log_err("pthread_detach: %s",
                                ret = pthread_detach(td->thread);
                                if (ret)
                                        log_err("pthread_detach: %s",