From 32e8dbc3558a7b9ddecad50a9eb241b5e36f6c02 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 31 Aug 2015 13:51:55 +0200 Subject: Add ability for process to change child's working directory --- butl/process | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'butl/process') diff --git a/butl/process b/butl/process index cf18acd..c810b58 100644 --- a/butl/process +++ b/butl/process @@ -59,6 +59,12 @@ namespace butl // process (char const* args[], process& in, int out = 1, int err = 2); + // Versions of the above constructors that allow us to change the + // current working directory of the child process. + // + process (const char* cwd, char const*[], int = 0, int = 1, int = 2); + process (const char* cwd, char const*[], process& in, int = 1, int = 2); + // Wait for the process to terminate. Return true if the process // terminated normally and with the zero exit status. Throw // process_error if anything goes wrong. @@ -85,4 +91,6 @@ namespace butl }; } +#include + #endif // BUTL_PROCESS -- cgit v1.1