Pass back return code from main function.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Wed, 11 Jan 2006 03:36:34 +0000 (03:36 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Wed, 11 Jan 2006 03:36:34 +0000 (03:36 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@1930 cb58f699-b61c-0410-a6fe-9272a202ed29

shar/shar_win32.cpp

index b20e6e2..af73a02 100644 (file)
@@ -123,10 +123,10 @@ int main(int argc, char *argv[])
     {
         // Install break handler, then run the C routine twice, once to setup, once to start running.
         SetConsoleCtrlHandler(&BreakHandler,TRUE);
-        if (real_main(1)!=0)
+        if ((i=real_main(1))!=0)
         {
             LogEvent(NULL, EVENTLOG_ERROR_TYPE, 2100, NULL, "shibd startup failed, check shibd.log for further details");
-            return -1;
+            return i;
         }
         return real_main(0);
     }