]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Changed the initial screen handling for NetWare so that the -s parameter will
authorBradley Nicholes <bnicholes@apache.org>
Thu, 12 Apr 2001 17:49:26 +0000 (17:49 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Thu, 12 Apr 2001 17:49:26 +0000 (17:49 +0000)
properly destroy the Apache console screen and switch to the system
console screen.  Also removed the call to clrscr() for NetWare so that any
warning messages produced during startup are visible.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@88829 13f79535-47bb-0310-9956-ffa450edef68

src/main/http_main.c

index d46db7e3601ee650aca25ddc5c4497925d743676..8176d821b9764f34077b57e9d8ccd162eabb5f22 100644 (file)
@@ -6834,7 +6834,17 @@ int REALMAIN(int argc, char *argv[])
 #endif /* WIN32 */
 #ifdef NETWARE
         case 's':
-            DestroyScreen(GetCurrentScreen());
+            if (DestroyScreen(GetCurrentScreen()) == 0)
+            {
+                int screenHandle;  
+   
+                /* Create a screen handle for the console screen, 
+                even though the console screen exists. */
+                if ((screenHandle = CreateScreen("System Console", 0)) != NULL)
+                {
+                    SetCurrentScreen(screenHandle);  /* switch to console screen I/O */
+                }
+            }
             break;
 #endif
        case 'S':
@@ -7075,7 +7085,6 @@ int REALMAIN(int argc, char *argv[])
         printf("%s running...\n", ap_get_server_version());
     }
 #elif defined(NETWARE)
-    clrscr();
     printf("%s running...\n", ap_get_server_version());
 #endif