Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Ignore user-supplied fd redirections above 2 for builtins | 2015-01-08 | |
| | | | | | Prevents e.g. specifying an fd which corresponds to the history file as the stdin for builtin_source | ||
* | Rework file descriptor handling | 2015-01-07 | |
| | | | | | | | | Remove global array of file descriptors, in favor of relying on CLO_EXEC exclusively. Also correctly implement "pipe avoidance" so that fd redirections do not conflict with pipes. | ||
* | Remove the close_old field from io_fd_t, which is never actually | 2014-04-16 | |
| | | | | | respected - a bug dating back to fish 1.x! The fd that would be closed is actually closed in io_cleanup_fds(). | ||
* | Minor cleanup of redirection functions | 2014-04-11 | |
| | |||
* | Remove support for input IO_BUFFERs, which were only used by fish_pager | 2014-03-15 | |
| | |||
* | Fix the build on OS X Mavericks | 2013-08-21 | |
| | | | | https://github.com/fish-shell/fish-shell/issues/968 | ||
* | Big fat refactoring of how redirections work. In fish 1.x and 2.0.0, the ↵ | 2013-08-19 | |
| | | | | | | | | | | redirections for a process were flattened into a big list associated with the job, so there was no way to tell which redirections applied to each process. Each process therefore got all the redirections associated with the job. See https://github.com/fish-shell/fish-shell/issues/877 for how this could manifest. With this change, jobs only track their block-level redirections. Process level redirections are correctly associated with the process, and at exec time we stitch them together (block, pipe, and process redirects). This fixes the weird issues where redirects bleed across pipelines (like #877), and also allows us to play with the order in which redirections are applied, since the final list is constructed right before it's needed. This lets us put pipes after block level redirections but before process level redirections, so that a 2>&1-type redirection gets picked up after the pipe, i.e. it should fix https://github.com/fish-shell/fish-shell/issues/110 This is a significant change. The tests all pass. Cross your fingers. | ||
* | Initial work towards various IO cleanups with an eye to fixing ↵ | 2013-08-19 | |
| | | | | https://github.com/fish-shell/fish-shell/issues/110 | ||
* | Formatting and style updates | 2013-05-05 | |
| | |||
* | Support for building with C++11 | 2013-04-09 | |
| | |||
* | Hopeful fix to avoid forking for certain builtins like echo when they have ↵ | 2013-02-22 | |
| | | | | an input redirection only | ||
* | Make io_file_t members const | 2013-02-11 | |
| | |||
* | Make io_fd_t members const, make close_fd bool | 2013-02-11 | |
| | |||
* | Make io_data_t::fd const | 2013-02-11 | |
| | | | | In exec(), pipe_{write,read} no longer get reused. | ||
* | Initial set of changes working to make fish robust against running out of ↵ | 2013-01-30 | |
| | | | | file descriptors | ||
* | Remove trailing whitespaces | 2013-01-21 | |
| | |||
* | Remove some functions which were rendered trivial by xiaq's changes. Make ↵ | 2013-01-19 | |
| | | | | io_file_t take its path directly. Make io_buffer_t no longer use a shared_ptr for its data. | ||
* | Revert "Make io_buffer_t::out_buffer a raw pointer, initialize in ↵ | 2013-01-17 | |
| | | | | | | | | | | io_buffer_t's constructor" This reverts commit d48ffab9d67da48cf45c2f5560c21a767144545f. Conflicts: io.cpp io.h | ||
* | Make io_data_t::io_mode const | 2013-01-17 | |
| | | | | | A protected constructor is needed in io_pipe_t to let io_buffer_t override its io_mode. | ||
* | Make is_input a member of io_pipe_t | 2013-01-17 | |
| | |||
* | Make io_buffer_t::out_buffer a raw pointer, initialize in io_buffer_t's ↵ | 2013-01-17 | |
| | | | | constructor | ||
* | Make io_data_t pure virtual, its constructor protected | 2013-01-17 | |
| | |||
* | Split out io_pipe_t, let io_buffer_t inherit it | 2013-01-17 | |
| | |||
* | Convert io_buffer_read to io_buffer_t::read | 2013-01-17 | |
| | |||
* | Add missing virtual qualifier to ~io_buffer_t | 2013-01-17 | |
| | |||
* | Convert io_buffer_create to static io_buffer_t::create, make io_buffer_t ↵ | 2013-01-17 | |
| | | | | constructor private | ||
* | Convert io_buffer_destroy to ~io_buffer_t | 2013-01-17 | |
| | |||
* | Split out io_buffer_t, make input_redirect in exec() a raw pointer | 2013-01-17 | |
| | |||
* | Split out io_file_t | 2013-01-17 | |
| | |||
* | Split out io_fd_t | 2013-01-17 | |
| | |||
* | Split out io_close_t | 2013-01-17 | |
| | |||
* | Put io_data_t detail printing in virtual io_data_t::print | 2013-01-17 | |
| | |||
* | Let io_data_t constructor take optional io_mode and fd | 2013-01-17 | |
| | |||
* | Make io_data_t destructor virtual | 2013-01-17 | |
| | |||
* | Use new IO_INVALID as default value of io_data_t::io_mode | 2013-01-17 | |
| | |||
* | rename enum io_mode -> io_mode_t; make io_data_t::io_mode that type | 2013-01-17 | |
| | |||
* | Revert "Revert shared_ptr<io_data_t> changes until kinks are ironed out" | 2013-01-11 | |
| | | | | This reverts commit 77f1b1f0fe27778750bb9b9aa53f6bc42d5e5843. | ||
* | Revert shared_ptr<io_data_t> changes until kinks are ironed out | 2013-01-04 | |
| | | | | | | | | | | | https://github.com/fish-shell/fish-shell/pull/487 Revert "Merge branch 'oo-io' of git://github.com/xiaq/fish-shell into xiaq-oo-io" This reverts commit f3c8f535a48d5fdd518bd60879ade948bc8be7e6, reversing changes made to b02f6cf3bc4343cf3e068dee3cb46de7139a5a27. Also reverts ac023f7588e562a03fdea7fd2feda487f18827c7 and a79d3c680c9548566309121630dadc94e48934c4 | ||
* | Remove io_duplicate, which is no longer used | 2013-01-04 | |
| | |||
* | Replace some shared_ptrs with const shared_ptr &. Don't use shared_ptr in ↵ | 2013-01-04 | |
| | | | | postfork.cpp. Eliminate copy constructor in io_data_t. Simplify some other uses of shared_ptr<io_data_t> | ||
* | Convert all io_data_t copying to shared_ptr copying. | 2013-01-01 | |
| | | | | Copy constructor of io_data_t is removed. | ||
* | Use shared_ptr to manage io_data_t*. | 2012-12-31 | |
| | |||
* | Apply new indentation, brace, and whitespace style | 2012-11-18 | |
| | |||
* | Remove trailing whitespaces and change tabs to spaces | 2012-11-18 | |
| | |||
* | Restore correct order of IO redirections | 2012-08-19 | |
| | | | | Fixes https://github.com/fish-shell/fish-shell/issues/281 | ||
* | Adopt posix_spawn (!) | 2012-08-15 | |
| | | | | | Rewrite IO chains to be a vector of pointers, instead of a linked list Removed io_transmogrify | ||
* | Additional warnings cleanup, effective C++ violations, dead code removal | 2012-08-05 | |
| | |||
* | Fixed a crash on inputs like ls x>| less, where x doesn't exist in current ↵ | 2012-03-16 | |
| | | | | directory. | ||
* | Flip the switch to stop draining threads before exec (!) | 2012-03-09 | |
| | |||
* | A bunch of changes working towards eliminating all memory allocation after ↵ | 2012-03-08 | |
| | | | | fork() |