Skip to content

Commit

Permalink
make f$curl_multi_close() signal safe
Browse files Browse the repository at this point in the history
  • Loading branch information
drdzyk authored Jul 26, 2023
1 parent 52c31bc commit 7cdb780
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions runtime/curl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,7 @@ Optional<int64_t> f$curl_multi_errno(curl_multi multi_id) noexcept {

void f$curl_multi_close(curl_multi multi_id) noexcept {
if (auto *multi_context = get_context<MultiContext>(multi_id)) {
dl::CriticalSectionGuard critical_section;
vk::singleton<CurlContexts>::get().multi_contexts.set_value(multi_id - 1, nullptr);
if (kphp_tracing::is_turned_on()) {
kphp_tracing::on_curl_multi_close(multi_context->uniq_id);
Expand Down

0 comments on commit 7cdb780

Please sign in to comment.