From b91fc5409e1e8eee6a33528f9c7c803dcee21891 Mon Sep 17 00:00:00 2001 From: Or Ozeri Date: Wed, 28 Nov 2018 09:54:02 +0200 Subject: [PATCH] fix multihead warning check --- src/curl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/curl.cpp b/src/curl.cpp index e82a24a..db82cee 100644 --- a/src/curl.cpp +++ b/src/curl.cpp @@ -3923,7 +3923,7 @@ int S3fsMultiCurl::MultiPerform(void) if (rc == 0) { iter = threads.erase(iter); int int_retval = (int)(intptr_t)(retval); - if (int_retval && !(int_retval == ENOENT && isMultiHead)) { + if (int_retval && !(int_retval == -ENOENT && isMultiHead)) { S3FS_PRN_WARN("thread failed - rc(%d)", int_retval); } break; @@ -3970,7 +3970,7 @@ int S3fsMultiCurl::MultiPerform(void) S3FS_PRN_ERR("failed pthread_join - rc(%d)", rc); } else { int int_retval = (int)(intptr_t)(retval); - if (int_retval && !(int_retval == ENOENT && isMultiHead)) { + if (int_retval && !(int_retval == -ENOENT && isMultiHead)) { S3FS_PRN_WARN("thread failed - rc(%d)", int_retval); } }