pPrPr_disableITimers();
if (workingDirectory) {
- chdir (workingDirectory);
+ if (chdir (workingDirectory) < 0) {
+ return -1;
+ }
}
/* Set the SIGINT/SIGQUIT signal handlers in the child, if requested
pPrPr_disableITimers();
if (workingDirectory) {
- chdir (workingDirectory);
+ if (chdir (workingDirectory) < 0) {
+ return -1;
+ }
}
dup2 (fdStdInput[0], STDIN_FILENO);