aboutsummaryrefslogtreecommitdiffhomepage
path: root/io.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-04-11 10:51:15 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-04-16 15:31:28 -0700
commit1ce30deec3ede38fba7fef2c35eafa4de700f333 (patch)
tree55a7895298b82c39115bf7c92c6da4f17cbddcce /io.h
parent8ed08872b92fda01e4a1f8c2ff159085e76a6f4b (diff)
Remove the close_old field from io_fd_t, which is never actually
respected - a bug dating back to fish 1.x! The fd that would be closed is actually closed in io_cleanup_fds().
Diffstat (limited to 'io.h')
-rw-r--r--io.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/io.h b/io.h
index 112d7611..38c1c7ba 100644
--- a/io.h
+++ b/io.h
@@ -66,15 +66,11 @@ public:
/** fd to redirect specified fd to. For example, in 2>&1, old_fd is 1, and io_data_t::fd is 2 */
const int old_fd;
- /** Whether to close old_fd */
- const bool close_old;
-
virtual void print() const;
- io_fd_t(int f, int old, bool close = false) :
+ io_fd_t(int f, int old) :
io_data_t(IO_FD, f),
- old_fd(old),
- close_old(close)
+ old_fd(old)
{
}
};