Compare commits

2 Commits

Author SHA1 Message Date
19daab173c version 4.7.4 2025-07-31 20:56:32 +03:00
19f8f522b3 Fix multi piprocess wait 2025-07-31 20:55:33 +03:00
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ endif()
project(PIP) project(PIP)
set(PIP_MAJOR 4) set(PIP_MAJOR 4)
set(PIP_MINOR 7) set(PIP_MINOR 7)
set(PIP_REVISION 3) set(PIP_REVISION 4)
set(PIP_SUFFIX ) set(PIP_SUFFIX )
set(PIP_COMPANY SHS) set(PIP_COMPANY SHS)
set(PIP_DOMAIN org.SHS) set(PIP_DOMAIN org.SHS)

View File

@@ -209,7 +209,7 @@ void PIProcess::startProc(bool detached) {
piMinSleep(); piMinSleep();
// cout << "wait" << endl; // cout << "wait" << endl;
if (!detached) { if (!detached) {
wait(&exit_code); waitpid(pid_, &exit_code, 0);
pid_ = 0; pid_ = 0;
if (!detached) PRIVATE->pid = pid_; if (!detached) PRIVATE->pid = pid_;
// cout << "wait done" << endl; // cout << "wait done" << endl;