]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: clean up thread_pipe in RGWHTTPManager::stop
authorCasey Bodley <cbodley@redhat.com>
Fri, 13 May 2016 17:03:18 +0000 (13:03 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 9 Nov 2016 15:29:21 +0000 (10:29 -0500)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit c93959b182c4394517a9ec9e29e3b14ee8030fc6)

src/rgw/rgw_http_client.cc

index 2ebbb417c03654371356be38aaae311d69bbfe94..1661dd2f2ba315498e3838d9b899d4bbf4e9a09c 100644 (file)
@@ -733,6 +733,8 @@ void RGWHTTPManager::stop()
     signal_thread();
     reqs_thread->join();
     delete reqs_thread;
+    TEMP_FAILURE_RETRY(::close(thread_pipe[1]));
+    TEMP_FAILURE_RETRY(::close(thread_pipe[0]));
   }
 }