未验证 提交 40c66f8d 编写于 作者: T Thunderbrook 提交者: GitHub

rm return in vfork (#19734)

* rm return in vfork

* rm return in vfork
test=develop
上级 b99fc38c
......@@ -685,7 +685,6 @@ void DownpourWorker::TrainFiles() {
*thread_scope_, tid, dense_grad_names_[tid], &push_sparse_status_,
scale_datanorm_, cur_batch);
}
VLOG(3) << "push dense gradient done.";
// the following code should be more precise and clean
......
......@@ -119,16 +119,12 @@ static int shell_popen_fork_internal(const char* real_cmd, bool do_read,
close(parent_end);
if (child_end != child_std_end) {
if (dup2(child_end, child_std_end) != child_std_end) {
return -1;
}
PCHECK(dup2(child_end, child_std_end) == child_std_end);
close(child_end);
}
close_open_fds_internal();
if (execl("/bin/bash", "bash", "-c", real_cmd, NULL) < 0) {
return -1;
}
PCHECK(execl("/bin/bash", "bash", "-c", real_cmd, NULL) >= 0);
exit(127);
#endif
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册