aboutsummaryrefslogtreecommitdiff
path: root/butl/fdstream
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-04-18 10:40:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-04-18 10:40:18 +0200
commited93e07b1b7a9e0ba99609a9223e43247ff4224e (patch)
treeaa203bdab5a5fc4f5fd8af16baf6903a7ee3dde0 /butl/fdstream
parent4408607c51a7c6e293adae41403b21d4a2c9a429 (diff)
Implement curl process
Diffstat (limited to 'butl/fdstream')
-rw-r--r--butl/fdstream7
1 files changed, 7 insertions, 0 deletions
diff --git a/butl/fdstream b/butl/fdstream
index 8f49990..df6b3f1 100644
--- a/butl/fdstream
+++ b/butl/fdstream
@@ -612,6 +612,13 @@ namespace butl
{
auto_fd in;
auto_fd out;
+
+ void
+ close ()
+ {
+ in.close ();
+ out.close ();
+ }
};
// Create a pipe. Throw ios::failure on the underlying OS error. By default