git-svn-id: svn://db.shs.com.ru/pip@424 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2017-04-20 08:01:33 +00:00
parent d8f53dacfc
commit 84201eaf94

View File

@@ -171,8 +171,15 @@ void PIProcess::startProc(bool detached) {
#else #else
//cout << "exec " << tf_in << ", " << tf_out << ", " << tf_err << endl; //cout << "exec " << tf_in << ", " << tf_out << ", " << tf_err << endl;
PIStringList clsl;
char a_ = a[0];
int ai_ = 0;
while (a_) {
clsl << PIString(a_);
a_ = a[ai_++];
}
if (execve(str.data(), a, e) < 0) if (execve(str.data(), a, e) < 0)
piCoutObj << "\"execve" << str << a << "\" error :" << errorString(); piCoutObj << "\"execve" << str << clsl.join(",") << "\" error :" << errorString();
} else { } else {
msleep(1); msleep(1);
//cout << "wait" << endl; //cout << "wait" << endl;