From 872dc1d4db608ad60d5441ef3bff7d6c056d7846 Mon Sep 17 00:00:00 2001 From: Zhang Qinghua Date: Fri, 28 Aug 2020 10:31:03 +0800 Subject: [PATCH] Set SigChld handler's log information from ERROR to INFO. --- mindspore/ccsrc/common/duplex_pipe.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mindspore/ccsrc/common/duplex_pipe.cc b/mindspore/ccsrc/common/duplex_pipe.cc index 1aaae5840d..7ca1667eb4 100644 --- a/mindspore/ccsrc/common/duplex_pipe.cc +++ b/mindspore/ccsrc/common/duplex_pipe.cc @@ -184,7 +184,7 @@ void DuplexPipe::SignalHandler::SigChildHandler(int sig) { int status; auto pid = waitpid(child_pid_, &status, WNOHANG | WUNTRACED); if (WIFEXITED(status)) { - DP_ERROR << "Child exited, status: " << WEXITSTATUS(status) << ", pid: " << pid; + DP_INFO << "Child exited, status: " << WEXITSTATUS(status) << ", pid: " << pid; if (!dp_.expired()) { dp_.lock()->Close(); } @@ -194,7 +194,7 @@ void DuplexPipe::SignalHandler::SigChildHandler(int sig) { // which caused by MPI_Finalize() never returned. exit(-1); } else if (WIFSTOPPED(status)) { - DP_ERROR << "Child stopped, sig: " << WSTOPSIG(status) << ", pid: " << pid; + DP_INFO << "Child stopped, sig: " << WSTOPSIG(status) << ", pid: " << pid; } else if (WIFSIGNALED(status)) { DP_INFO << "Child not exited, signaled, sig: " << WTERMSIG(status) << ", pid: " << pid; } else if (WIFCONTINUED(status)) {