diff --git a/src/redirection.cpp b/src/redirection.cpp index e5cccebd9..64acdda23 100644 --- a/src/redirection.cpp +++ b/src/redirection.cpp @@ -37,7 +37,8 @@ maybe_t dup2_list_t::resolve_chain(const io_chain_t &io_chain) { 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. if (file_fd != io_file->fd) { file_fd = move_fd_to_unused(file_fd, io_chain, false /* cloexec */); diff --git a/src/redirection.h b/src/redirection.h index 95cc8fac0..3f1902e8a 100644 --- a/src/redirection.h +++ b/src/redirection.h @@ -57,7 +57,8 @@ public: const std::vector &get_actions() const { return actions_; } /// 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 resolve_chain(const io_chain_t &); };