Wrap long lines

This commit is contained in:
Mahmoud Al-Qudsi 2019-02-10 00:14:42 -06:00
parent 2445a76d2e
commit a00ef4aa2e
2 changed files with 4 additions and 2 deletions

View file

@ -37,7 +37,8 @@ maybe_t<dup2_list_t> dup2_list_t::resolve_chain(const io_chain_t &io_chain) {
return none(); return none();
} }
// If by chance we got the file we want, we're done. Otherwise move the fd to an unused place and dup2 it. // If by chance we got the file we want, we're done. Otherwise move the fd to an
// unused place and dup2 it.
// Note move_fd_to_unused() will close the incoming file_fd. // Note move_fd_to_unused() will close the incoming file_fd.
if (file_fd != io_file->fd) { if (file_fd != io_file->fd) {
file_fd = move_fd_to_unused(file_fd, io_chain, false /* cloexec */); file_fd = move_fd_to_unused(file_fd, io_chain, false /* cloexec */);

View file

@ -57,7 +57,8 @@ public:
const std::vector<action_t> &get_actions() const { return actions_; } const std::vector<action_t> &get_actions() const { return actions_; }
/// Produce a dup_fd_list_t from an io_chain. This may not be called before fork(). /// Produce a dup_fd_list_t from an io_chain. This may not be called before fork().
/// The result contains the list of fd actions (dup2 and close), as well as the list of fds opened. /// The result contains the list of fd actions (dup2 and close), as well as the list
/// of fds opened.
static maybe_t<dup2_list_t> resolve_chain(const io_chain_t &); static maybe_t<dup2_list_t> resolve_chain(const io_chain_t &);
}; };