mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 11:43:37 +08:00
Wrap long lines
This commit is contained in:
parent
2445a76d2e
commit
a00ef4aa2e
|
@ -37,7 +37,8 @@ maybe_t<dup2_list_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 */);
|
||||
|
|
|
@ -57,7 +57,8 @@ public:
|
|||
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().
|
||||
/// 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 &);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user