piprocess #189

Merged
peri4 merged 14 commits from piprocess into master 2025-08-14 10:05:23 +03:00
2 changed files with 1 additions and 9 deletions
Showing only changes of commit 30c4f215a2 - Show all commits

View File

@@ -17,9 +17,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "piliterals_time.h"
#include "pitime.h"
#include "pitranslator.h"
#ifndef MICRO_PIP
# include "piincludes_p.h"
@@ -294,11 +292,6 @@ void PIProcess::terminate() {
}
bool PIProcess::waitForFinish() {
return PIThread::waitForFinish(1_m);
}
void PIProcess::execIndependent(const PIString & program, const PIStringList & args_) {
PIProcess p;
p.args << program << args_;

View File

@@ -28,7 +28,6 @@
#ifndef MICRO_PIP
# include "pifile.h"
# include "pithread.h"
@@ -110,7 +109,7 @@ public:
exec_();
}
EVENT_HANDLER(void, terminate);
EVENT_HANDLER(bool, waitForFinish);
EVENT_HANDLER(bool, waitForFinish) { return PIThread::waitForFinish(); }
EVENT_HANDLER1(bool, waitForFinish, PISystemTime, timeout) { return PIThread::waitForFinish(timeout); }
EVENT1(execStarted, PIString, program);