forked from OSSInnovation/mindspore
Not let parent process exit any more
This commit is contained in:
parent
d81b30e6a0
commit
e4b7811b4f
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue