]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Use exit code EXIT_STATUS_SERVICE on Windows when exiting because of a service error
authorattilamolnar <attilamolnar@hush.com>
Tue, 18 Jun 2013 19:26:54 +0000 (21:26 +0200)
committerattilamolnar <attilamolnar@hush.com>
Tue, 18 Jun 2013 19:26:54 +0000 (21:26 +0200)
win/inspircd_win32wrapper.h
win/win32service.cpp

index 6619ac09a3135983d2c9ca78f5a5b4083c7b41f6..a7f2b4354ce3c3abf03cae8c2939b701de4484c0 100644 (file)
@@ -211,3 +211,6 @@ private:
        char szErrorString[500];
        DWORD dwErrorCode;
 };
        char szErrorString[500];
        DWORD dwErrorCode;
 };
+
+// Same value as EXIT_STATUS_FORK (EXIT_STATUS_FORK is unused on Windows)
+#define EXIT_STATUS_SERVICE 4
index d06ad1838d81e9a606814d0670c3f0e94f7ff96c..448829a1d9dcaf4de169144337cb670f5a30cbe9 100644 (file)
@@ -280,7 +280,7 @@ int main(int argc, char* argv[])
                }
                else
                {
                }
                else
                {
-                       return EXIT_STATUS_INTERNAL;
+                       return EXIT_STATUS_SERVICE;
                }
        }
        return 0;
                }
        }
        return 0;