summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--win/inspircd_win32wrapper.h3
-rw-r--r--win/win32service.cpp2
2 files changed, 4 insertions, 1 deletions
diff --git a/win/inspircd_win32wrapper.h b/win/inspircd_win32wrapper.h
index 6619ac09a..a7f2b4354 100644
--- a/win/inspircd_win32wrapper.h
+++ b/win/inspircd_win32wrapper.h
@@ -211,3 +211,6 @@ private:
char szErrorString[500];
DWORD dwErrorCode;
};
+
+// Same value as EXIT_STATUS_FORK (EXIT_STATUS_FORK is unused on Windows)
+#define EXIT_STATUS_SERVICE 4
diff --git a/win/win32service.cpp b/win/win32service.cpp
index d06ad1838..448829a1d 100644
--- a/win/win32service.cpp
+++ b/win/win32service.cpp
@@ -280,7 +280,7 @@ int main(int argc, char* argv[])
}
else
{
- return EXIT_STATUS_INTERNAL;
+ return EXIT_STATUS_SERVICE;
}
}
return 0;