git-svn-id: svn://db.shs.com.ru/pip@424 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -171,8 +171,15 @@ void PIProcess::startProc(bool detached) {
|
||||
#else
|
||||
|
||||
//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)
|
||||
piCoutObj << "\"execve" << str << a << "\" error :" << errorString();
|
||||
piCoutObj << "\"execve" << str << clsl.join(",") << "\" error :" << errorString();
|
||||
} else {
|
||||
msleep(1);
|
||||
//cout << "wait" << endl;
|
||||
|
||||
Reference in New Issue
Block a user