diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2016-02-12 18:22:12 -0600 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2016-02-12 18:22:12 -0600 |
commit | d814acbb8f3b48bc1165b8012da6ed0207ddb086 (patch) | |
tree | 4788cc044fbae6ea1dbf2705048ff5a4c0eb7b88 /libs/pbd/system_exec.cc | |
parent | 0812f3bac19368cee5e2af04a93e50dbc640f9c5 (diff) |
add some debugging capability for users of SystemExec. Needs review.
Diffstat (limited to 'libs/pbd/system_exec.cc')
-rw-r--r-- | libs/pbd/system_exec.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/pbd/system_exec.cc b/libs/pbd/system_exec.cc index 02e4ddcd85..fc66e1f6e4 100644 --- a/libs/pbd/system_exec.cc +++ b/libs/pbd/system_exec.cc @@ -282,6 +282,18 @@ SystemExec::make_argp_escaped(std::string command, const std::map<char, std::str argp[n] = NULL; } +string +SystemExec::GetString () +{ + stringstream out; + if (argp) { + for (int i = 0; argp[i]; ++i) { + out << argp[i]; + } + } + return out.str(); +} + SystemExec::~SystemExec () { terminate (); |