Bugfixes 2 #208
@@ -319,6 +319,13 @@ void PIProcess::startProc(bool detached) {
|
||||
auto largs = convertToCharArrays(args);
|
||||
auto lenv = convertToCharArrays(env);
|
||||
int pid_ = fork();
|
||||
if (pid_ < 0) {
|
||||
piCoutObj << "\"fork\" error: " << errorString();
|
||||
PRIVATE->closeAllPipes();
|
||||
delete[] largs;
|
||||
delete[] lenv;
|
||||
return;
|
||||
}
|
||||
if (!detached) PRIVATE->pid = pid_;
|
||||
if (pid_ == 0) {
|
||||
if (!wd.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user