From 32a7af79b6b94bb08ae9868a0de12d9453fa8d13 Mon Sep 17 00:00:00 2001 From: kswang Date: Fri, 11 Sep 2020 16:29:32 +0800 Subject: [PATCH] fix fork thread lock --- mindspore/ccsrc/common/duplex_pipe.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/mindspore/ccsrc/common/duplex_pipe.cc b/mindspore/ccsrc/common/duplex_pipe.cc index 228df781c3..139b41d0f9 100644 --- a/mindspore/ccsrc/common/duplex_pipe.cc +++ b/mindspore/ccsrc/common/duplex_pipe.cc @@ -40,7 +40,6 @@ int DuplexPipe::Open(std::initializer_list arg_list, bool append_fd close(fd2_[1]); DP_EXCEPTION << "fork failed, errno: " << errno; } else if (pid_ == 0) { // Remote process - DP_INFO << "Remote process, pid: " << getpid() << ", " << fd1_[0] << "/" << fd2_[1]; remote_stdout_ = dup(STDOUT_FILENO); remote_stdin_ = dup(STDIN_FILENO); remote_stderr_ = dup(STDERR_FILENO);