}
if(!pid)
- return 255;
+ return exit_code;
int status;
if(waitpid(pid, &status, WNOHANG)==pid)
exit_code=WEXITSTATUS(status);
else
exit_code=254;
+ pid=0;
return exit_code;
}
else
return -1;
}
+/**
+Starts the external program. Fill in argv before calling this.
+*/
void ExternalAction::launch()
{
if(builder.get_verbose()>=2)