ref: e81acc7df5f7939d93c6724e422f823111dfeba0
parent: 4f540343e63eb60f209ce7e8ce26db10c16ab4e6
author: Simon Howard <[email protected]>
date: Fri Dec 18 16:10:35 EST 2009
Make ExecuteCommand() under Unix return a failure when the executable cannot be executed. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1748
--- a/setup/execute.c
+++ b/setup/execute.c
@@ -312,7 +312,7 @@
execvp(argv[0], (char **) argv);
- exit(-1);
+ exit(0x80);
}
else
{
@@ -321,7 +321,7 @@
waitpid(childpid, &result, 0);
- if (WIFEXITED(result))
+ if (WIFEXITED(result) && WEXITSTATUS(result) != 0x80)
{
return WEXITSTATUS(result);
}