mirror of https://github.com/milvus-io/milvus.git
Memset sigaction before using it (#24933)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/24945/head
parent
ce5cb3c0c5
commit
cbfbc4e63a
|
@ -95,6 +95,7 @@ MinioChunkManager::InitSDKAPI(RemoteStorageType type) {
|
|||
if (initCount == 0) {
|
||||
// sdk_options_.httpOptions.installSigPipeHandler = true;
|
||||
struct sigaction psa;
|
||||
memset(&psa, 0, sizeof psa);
|
||||
psa.sa_handler = SwallowHandler;
|
||||
psa.sa_flags = psa.sa_flags | SA_ONSTACK;
|
||||
sigaction(SIGPIPE, &psa, 0);
|
||||
|
|
Loading…
Reference in New Issue