Browse Source

Not let parent process exit any more

tags/v1.0.0
Zhang Qinghua 5 years ago
parent
commit
e4b7811b4f
1 changed files with 0 additions and 5 deletions
  1. +0
    -5
      mindspore/ccsrc/common/duplex_pipe.cc

+ 0
- 5
mindspore/ccsrc/common/duplex_pipe.cc View File

@@ -188,11 +188,6 @@ void DuplexPipe::SignalHandler::SigChildHandler(int sig) {
if (!dp_.expired()) { if (!dp_.expired()) {
dp_.lock()->Close(); dp_.lock()->Close();
} }

// When run multiple processes by 'mpirun',
// parent process never quit even Exception happens,
// which caused by MPI_Finalize() never returned.
exit(-1);
} else if (WIFSTOPPED(status)) { } else if (WIFSTOPPED(status)) {
DP_INFO << "Child stopped, sig: " << WSTOPSIG(status) << ", pid: " << pid; DP_INFO << "Child stopped, sig: " << WSTOPSIG(status) << ", pid: " << pid;
} else if (WIFSIGNALED(status)) { } else if (WIFSIGNALED(status)) {


Loading…
Cancel
Save