]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
First, checking for typos like fF: instead of Ff: in the getopt list
authorWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 5 Jun 2002 04:53:15 +0000 (04:53 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 5 Jun 2002 04:53:15 +0000 (04:53 +0000)
  would have been goodness.  But this simply doesn't apply to win32,
  we don't DETACH in the Unix-ish way of the world.

  I don't even believe this applies to ANY user of the MULTITHREADed
  code path [only Netware and Win32 use it, correct?]  But I'll leave
  the code in, and exclude only Win32 (where it was a noop anyways.)

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

src/main/http_main.c

index ce369c328b4fe3abfee9b8118c8df1a95a9d248c..afadb70921b8a20ad080b9b77b4d6257bfd74638 100644 (file)
@@ -1351,7 +1351,7 @@ static void usage(char *bin)
 #ifdef WIN32
     fprintf(stderr, "Usage: %s [-D name] [-d directory] [-f file] [-n service]\n", bin);
     fprintf(stderr, "       %s [-C \"directive\"] [-c \"directive\"] [-k signal]\n", pad);
-    fprintf(stderr, "       %s [-v] [-V] [-h] [-l] [-L] [-S] [-t] [-T] [-F]\n", pad);
+    fprintf(stderr, "       %s [-v] [-V] [-h] [-l] [-L] [-S] [-t] [-T]\n", pad);
 #else /* !WIN32 */
 #ifdef SHARED_CORE
     fprintf(stderr, "Usage: %s [-R directory] [-D name] [-d directory] [-f file]\n", bin);
@@ -1382,7 +1382,9 @@ static void usage(char *bin)
 #endif
     fprintf(stderr, "  -t               : run syntax check for config files (with docroot check)\n");
     fprintf(stderr, "  -T               : run syntax check for config files (without docroot check)\n");
+#ifndef WIN32
     fprintf(stderr, "  -F               : run main process in foreground, for process supervisors\n");
+#endif
 #ifdef WIN32
     fprintf(stderr, "  -n name          : name the Apache service for -k options below;\n");
     fprintf(stderr, "  -k stop|shutdown : tell running Apache to shutdown\n");
@@ -7256,7 +7258,7 @@ int REALMAIN(int argc, char *argv[])
         reparsed = 1;
     }
 
-    while ((c = getopt(argc, argv, "D:C:c:Xd:fF:vVlLz:Z:wiuStThk:n:W:")) != -1) {
+    while ((c = getopt(argc, argv, "D:C:c:Xd:f:vVlLz:Z:wiuStThk:n:W:")) != -1) {
 #else /* !WIN32 */
     while ((c = getopt(argc, argv, "D:C:c:Xd:fF:vVlLesStTh")) != -1) {
 #endif
@@ -7380,9 +7382,11 @@ int REALMAIN(int argc, char *argv[])
                     && ap_server_root[strlen(ap_server_root) - 1] == '/')
                 ap_server_root[strlen(ap_server_root) - 1] = '\0';
            break;
+#ifndef WIN32
        case 'F':
            do_detach = 0;
            break;
+#endif
        case 'f':
             ap_cpystrn(ap_server_confname,
                        ap_os_canonical_filename(pcommands, optarg),