diff options
Diffstat (limited to 'butl/fdstream')
-rw-r--r-- | butl/fdstream | 7 |
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 |