From e4b7811b4fff01a59476dbe0c8f84886b1aaa0d8 Mon Sep 17 00:00:00 2001 From: Zhang Qinghua Date: Sat, 29 Aug 2020 17:11:08 +0800 Subject: [PATCH] Not let parent process exit any more --- mindspore/ccsrc/common/duplex_pipe.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/mindspore/ccsrc/common/duplex_pipe.cc b/mindspore/ccsrc/common/duplex_pipe.cc index 7ca1667eb4..9ee47d7f6b 100644 --- a/mindspore/ccsrc/common/duplex_pipe.cc +++ b/mindspore/ccsrc/common/duplex_pipe.cc @@ -188,11 +188,6 @@ void DuplexPipe::SignalHandler::SigChildHandler(int sig) { if (!dp_.expired()) { 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)) { DP_INFO << "Child stopped, sig: " << WSTOPSIG(status) << ", pid: " << pid; } else if (WIFSIGNALED(status)) {