summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index d9c726a2c..8e9105b64 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -27,6 +27,7 @@
#include <getopt.h>
#include <iostream>
+#include <unistd.h>
#include "utils/gettext.h"
#ifdef ANDROID
@@ -238,12 +239,12 @@ int main(int argc, char *argv[])
if (options.printHelp)
{
printHelp();
- return 0;
+ _exit(0);
}
else if (options.printVersion)
{
printVersion();
- return 0;
+ _exit(0);
}
// Initialize PhysicsFS