Not let parent process exit any more

This commit is contained in:
Zhang Qinghua 2020-08-29 17:11:08 +08:00
parent d81b30e6a0
commit e4b7811b4f
1 changed files with 0 additions and 5 deletions

View File

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