mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-22 03:46:50 +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>
|
||||
|
||||
Error SubProcessUnix::start() {
|
||||
if (_executable_path.empty()) {
|
||||
return ERR_FILE_BAD_PATH;
|
||||
}
|
||||
|
||||
if (is_process_running()) {
|
||||
return ERR_BUSY;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user