backend: make it clear that we passed 'fd' to the new thread
authorJens Axboe <axboe@kernel.dk>
Fri, 1 Dec 2017 02:45:05 +0000 (19:45 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 1 Dec 2017 02:45:05 +0000 (19:45 -0700)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
backend.c

index 7cf9b382703ecac53d4998d56951b15b40c12ddf..10eb90e2e7df06a9516fbab11b7b812e62e631e3 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -2318,6 +2318,7 @@ reap:
                                        nr_started--;
                                        break;
                                }
+                               fd = NULL;
                                ret = pthread_detach(td->thread);
                                if (ret)
                                        log_err("pthread_detach: %s",