mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-03-29 23:35:30 +01:00
Return early in SubProcessUnix::start() if the executable path is empty.
This commit is contained in:
parent
ca105c2f88
commit
a0a84c4987
@ -40,6 +40,10 @@
|
|||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
|
|
||||||
Error SubProcessUnix::start() {
|
Error SubProcessUnix::start() {
|
||||||
|
if (_executable_path.empty()) {
|
||||||
|
return ERR_FILE_BAD_PATH;
|
||||||
|
}
|
||||||
|
|
||||||
if (is_process_running()) {
|
if (is_process_running()) {
|
||||||
return ERR_BUSY;
|
return ERR_BUSY;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user