rm return in vfork (#19734)

* rm return in vfork

* rm return in vfork
test=develop
expand_as_op_1
Thunderbrook 6 years ago committed by GitHub
parent b99fc38cec
commit 40c66f8df9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
}

Loading…
Cancel
Save