aboutsummaryrefslogtreecommitdiff
path: root/butl/process
diff options
context:
space:
mode:
Diffstat (limited to 'butl/process')
-rw-r--r--butl/process8
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