diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-08-31 13:51:55 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-08-31 13:51:55 +0200 |
commit | 32e8dbc3558a7b9ddecad50a9eb241b5e36f6c02 (patch) | |
tree | 0e47f5f50ff4223122818cea96582107ebf0f577 /butl/process | |
parent | b1663a49f512303550efeb117fb265dd6beb038c (diff) |
Add ability for process to change child's working directory
Diffstat (limited to 'butl/process')
-rw-r--r-- | butl/process | 8 |
1 files changed, 8 insertions, 0 deletions
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 <butl/process.ixx> + #endif // BUTL_PROCESS |