Bugfixes 2 #208

Merged
andrey merged 10 commits from bugfixes2 into master 2026-08-05 23:26:37 +03:00
Showing only changes of commit 27a9f05d65 - Show all commits
+7
View File
@@ -319,6 +319,13 @@ void PIProcess::startProc(bool detached) {
auto largs = convertToCharArrays(args); auto largs = convertToCharArrays(args);
auto lenv = convertToCharArrays(env); auto lenv = convertToCharArrays(env);
int pid_ = fork(); int pid_ = fork();
if (pid_ < 0) {
piCoutObj << "\"fork\" error: " << errorString();
PRIVATE->closeAllPipes();
delete[] largs;
delete[] lenv;
return;
}
if (!detached) PRIVATE->pid = pid_; if (!detached) PRIVATE->pid = pid_;
if (pid_ == 0) { if (pid_ == 0) {
if (!wd.isEmpty()) { if (!wd.isEmpty()) {