!18366 fix log lock in signal handler

Merge pull request !18366 from zhoufeng/fix-signal-handler-lock
This commit is contained in:
i-robot 2021-06-16 10:41:31 +08:00 committed by Gitee
commit 74be005bc6
1 changed files with 1 additions and 2 deletions

View File

@ -196,8 +196,7 @@ void DuplexPipe::SignalHandler::SigPipeHandler(int sig) {
}
}
void DuplexPipe::SignalHandler::SigChildHandler(int sig) {
DP_INFO << "Signal: " << sig << ", child_pid_: " << child_pid_;
void DuplexPipe::SignalHandler::SigChildHandler(int) {
int status;
if (child_pid_ != nullptr) {
(void)waitpid(*child_pid_, &status, WNOHANG | WUNTRACED);