aboutsummaryrefslogtreecommitdiff
path: root/butl/process-run.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-04-12 15:03:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-04-12 15:03:31 +0200
commit4b8511e2618c2813808011c228d22669945589e6 (patch)
tree01269cf3e653ad6312ac7ba7fca104364ffacd01 /butl/process-run.txx
parent550b5257aba507bcce98f6832b8905769a14955d (diff)
Add process::id(), make few minor fixes
Diffstat (limited to 'butl/process-run.txx')
-rw-r--r--butl/process-run.txx4
1 files changed, 2 insertions, 2 deletions
diff --git a/butl/process-run.txx b/butl/process-run.txx
index 013be4c..8368890 100644
--- a/butl/process-run.txx
+++ b/butl/process-run.txx
@@ -20,7 +20,7 @@ namespace butl
inline int
process_stderr (const auto_fd& v) {assert (v.get () >= 0); return v.get ();}
- process
+ LIBBUTL_EXPORT process
process_start (const dir_path& cwd,
const process_path& pp,
const char* cmd[],
@@ -55,7 +55,7 @@ namespace butl
//
const std::size_t args_size (sizeof... (args));
- std::string storage[args_size];
+ std::string storage[args_size != 0 ? args_size : 1];
const char* cmd[args_size + 2] = {
pp.recall_string (),
process_arg_as (args, storage[index])...,