diff --git a/src/rcore.c b/src/rcore.c index 31e3e053c..05a6dd0dd 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -4587,11 +4587,9 @@ RLAPI int WaitProcess(Process process) // Normal exit return WEXITSTATUS(status); } - else if (WIFSIGNALED(status)) - { - // Terminated by signal - return -1; - } + + // Terminated by signal or other non-normal exit + return -1; } else {