aboutsummaryrefslogtreecommitdiffhomepage
path: root/io.cpp
diff options
context:
space:
mode:
authorGravatar Cheer Xiao <xiaqqaix@gmail.com>2013-01-09 16:02:04 +0800
committerGravatar Cheer Xiao <xiaqqaix@gmail.com>2013-01-17 14:58:53 +0800
commitf1b375b042ad1564d00645579a54bb28ba3e30d1 (patch)
tree4f58775472a7c7fa70e5d628018e714cc2c8e261 /io.cpp
parent4e672427bc7fb0709a57335c9315f9afdc6e49ed (diff)
Split out io_close_t
Diffstat (limited to 'io.cpp')
-rw-r--r--io.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/io.cpp b/io.cpp
index 42c55f9f..33045bcf 100644
--- a/io.cpp
+++ b/io.cpp
@@ -67,12 +67,14 @@ void io_data_t::print() const
case IO_BUFFER:
fprintf(stderr, "buffer %p (size %lu)\n", out_buffer_ptr(), out_buffer_size());
break;
- case IO_CLOSE:
- fprintf(stderr, "close %d\n", fd);
- break;
}
}
+void io_close_t::print() const
+{
+ fprintf(stderr, "close %d\n", fd);
+}
+
void io_buffer_read(io_data_t *d)
{
exec_close(d->param1.pipe_fd[1]);