amend d814acb
- SystemExec/Export debugging
This commit is contained in:
parent
d814acbb8f
commit
108528b63d
@ -355,7 +355,7 @@ ExportHandler::finish_timespan ()
|
||||
subs.insert (std::pair<char, std::string> ('n', session.name ()));
|
||||
|
||||
ARDOUR::SystemExec *se = new ARDOUR::SystemExec(fmt->command(), subs);
|
||||
info << "Post-export command line : {" << se->GetString() << "}" << endmsg;
|
||||
info << "Post-export command line : {" << se->to_s () << "}" << endmsg;
|
||||
se->ReadStdout.connect_same_thread(command_connection, boost::bind(&ExportHandler::command_output, this, _1, _2));
|
||||
int ret = se->start (2);
|
||||
if (ret == 0) {
|
||||
|
@ -115,7 +115,7 @@ class LIBPBD_API SystemExec
|
||||
|
||||
virtual ~SystemExec ();
|
||||
|
||||
std::string GetString();
|
||||
std::string to_s() const;
|
||||
|
||||
/** fork and execute the given program
|
||||
*
|
||||
|
@ -282,18 +282,6 @@ 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 ();
|
||||
@ -323,6 +311,18 @@ interposer_thread (void *arg) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
string
|
||||
SystemExec::to_s () const
|
||||
{
|
||||
stringstream out;
|
||||
if (argp) {
|
||||
for (int i = 0; argp[i]; ++i) {
|
||||
out << argp[i] << " ";
|
||||
}
|
||||
}
|
||||
return out.str();
|
||||
}
|
||||
|
||||
#ifdef PLATFORM_WINDOWS /* Windows Process */
|
||||
|
||||
/* HELPER FUNCTIONS */
|
||||
|
Loading…
Reference in New Issue
Block a user