diff options
author | 2015-01-07 18:07:06 -0800 | |
---|---|---|
committer | 2015-01-07 18:07:06 -0800 | |
commit | 7864d0d416519774c614148920530bc7da4a3e3b (patch) | |
tree | a2fab74e5d3145349440d098d4cfc00363a3284c /fish_tests.cpp | |
parent | d1feb9bcbf141e2195f37a8ab0f526c24a533cda (diff) |
Rework file descriptor handling
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.
Diffstat (limited to 'fish_tests.cpp')
-rw-r--r-- | fish_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fish_tests.cpp b/fish_tests.cpp index 9fa6a110..a1f984f3 100644 --- a/fish_tests.cpp +++ b/fish_tests.cpp @@ -773,7 +773,7 @@ static int signal_main(test_cancellation_info_t *info) static void test_1_cancellation(const wchar_t *src) { - shared_ptr<io_buffer_t> out_buff(io_buffer_t::create(STDOUT_FILENO)); + shared_ptr<io_buffer_t> out_buff(io_buffer_t::create(STDOUT_FILENO, io_chain_t())); const io_chain_t io_chain(out_buff); test_cancellation_info_t ctx = {pthread_self(), 0.25 /* seconds */ }; iothread_perform(signal_main, (void (*)(test_cancellation_info_t *, int))NULL, &ctx); |