linux fix

This commit is contained in:
2022-04-25 21:32:35 +03:00
parent 6a399c7d39
commit 41fb7cc40d
3 changed files with 107 additions and 82 deletions

View File

@@ -202,7 +202,7 @@ void PIProcess::startProc(bool detached) {
#else
//cout << "exec " << tf_in << ", " << tf_out << ", " << tf_err << endl;
if (execve(str.data(), argscc, envcc) < 0)
if (execve(str.data(), (char * const *)argscc, (char * const *)envcc) < 0)
piCoutObj << "\"execve" << str << args << "\" error :" << errorString();
} else {
piMinSleep;