Fix multi piprocess wait

This commit is contained in:
2025-07-31 20:55:33 +03:00
parent 905d39c07b
commit 19f8f522b3

View File

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