Browse Source

!5399 Set SigChld handler's log information from ERROR to INFO.

Merge pull request !5399 from ZhangQinghua/master
tags/v1.0.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
44784461e1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      mindspore/ccsrc/common/duplex_pipe.cc

+ 2
- 2
mindspore/ccsrc/common/duplex_pipe.cc View File

@@ -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)) {


Loading…
Cancel
Save