Skip to content

Commit

Permalink
fix ignore SIGPIPE signal concurrent issue with other library (apache…
Browse files Browse the repository at this point in the history
  • Loading branch information
lrita authored and Yang Liming committed Oct 31, 2023
1 parent 0618247 commit 510b1a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/brpc/global.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ static void GlobalInitializeOrDieImpl() {
struct sigaction oldact;
if (sigaction(SIGPIPE, NULL, &oldact) != 0 ||
(oldact.sa_handler == NULL && oldact.sa_sigaction == NULL)) {
CHECK(NULL == signal(SIGPIPE, SIG_IGN));
CHECK(SIG_ERR != signal(SIGPIPE, SIG_IGN));
}

// Make GOOGLE_LOG print to comlog device
Expand Down

0 comments on commit 510b1a5

Please sign in to comment.