mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Wrap long lines
This commit is contained in:
parent
2445a76d2e
commit
a00ef4aa2e
2 changed files with 4 additions and 2 deletions
|
@ -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 */);
|
||||||
|
|
|
@ -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 &);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue