mirror of https://github.com/milvus-io/milvus.git
Add sa_mask for SIGPIPE handler (#24824)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/24841/head
parent
e170110b88
commit
ae2fe478a9
|
@ -90,6 +90,9 @@ MinioChunkManager::InitSDKAPI(RemoteStorageType type) {
|
|||
struct sigaction psa;
|
||||
psa.sa_handler = SwallowHandler;
|
||||
psa.sa_flags = psa.sa_flags | SA_ONSTACK;
|
||||
// block multiple SIGPIPE concurrently processing
|
||||
sigemptyset(&psa.sa_mask);
|
||||
sigaddset(&psa.sa_mask, SIGPIPE);
|
||||
sigaction(SIGPIPE, &psa, 0);
|
||||
#ifdef BUILD_GCP
|
||||
if (type == RemoteStorageType::GOOGLE_CLOUD) {
|
||||
|
|
Loading…
Reference in New Issue