Browse Source

!6061 fix for thread log lock

Merge pull request !6061 from kisnwang/fix-fork-thread-lock
tags/v1.0.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
bc8115ae66
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      mindspore/ccsrc/common/duplex_pipe.cc

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

@@ -40,7 +40,6 @@ int DuplexPipe::Open(std::initializer_list<std::string> 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);
close(fd1_[1]);


Loading…
Cancel
Save