]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix a typo and clean up some tab characters.
authorBradley Nicholes <bnicholes@apache.org>
Wed, 14 Apr 2004 17:02:45 +0000 (17:02 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Wed, 14 Apr 2004 17:02:45 +0000 (17:02 +0000)
Submitted by: Guenter Knauf <gk@gknw.de>

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

server/mpm/netware/mpm_netware.c

index f53b32cb9019ffb0725c232dadc52d3a53fd5c5e..5b57a63ec38448ab703da831feefc26217428444 100644 (file)
@@ -64,7 +64,7 @@
 #include "http_main.h"
 #include "http_log.h"
 #include "http_config.h"
-#include "http_core.h"         /* for get_remote_host */
+#include "http_core.h"             /* for get_remote_host */
 #include "http_connection.h"
 #include "scoreboard.h"
 #include "ap_mpm.h"
@@ -128,10 +128,10 @@ int hold_screen_on_exit = 0; /* Indicates whether the screen should be held open
 static fd_set listenfds;
 static int listenmaxfd;
 
-static apr_pool_t *pconf;              /* Pool for config stuff */
-static apr_pool_t *pmain;              /* Pool for httpd child stuff */
+static apr_pool_t *pconf;               /* Pool for config stuff */
+static apr_pool_t *pmain;               /* Pool for httpd child stuff */
 
-static pid_t ap_my_pid;        /* it seems silly to call getpid all the time */
+static pid_t ap_my_pid;  /* it seems silly to call getpid all the time */
 static char *ap_my_addrspace = NULL;
 
 static int die_now = 0;
@@ -248,11 +248,11 @@ static void mpm_term(void)
 static void sig_term(int sig)
 {
     if (shutdown_pending == 1) {
-           /* Um, is this _probably_ not an error, if the user has
-            * tried to do a shutdown twice quickly, so we won't
-            * worry about reporting it.
-            */
-           return;
+        /* Um, is this _probably_ not an error, if the user has
+         * tried to do a shutdown twice quickly, so we won't
+         * worry about reporting it.
+         */
+        return;
     }
     shutdown_pending = 1;
 
@@ -376,7 +376,7 @@ void worker_main(void *arg)
         for (;;) {
             if (shutdown_pending || restart_pending || (ap_scoreboard_image->servers[0][my_worker_num].status == WORKER_IDLE_KILL)) {
                 DBPRINT1 ("\nThread slot %d is shutting down\n", my_worker_num);
-                clean_child_exit(0, my_worker_num, ptrans, bucket_alloc);
+                clean_child_exit(0, my_worker_num, ptrans, bucket_alloc);
             }
 
             /* Check the listen queue on all sockets for requests */
@@ -450,7 +450,7 @@ void worker_main(void *arg)
                     avg_retries += (MAX_WB_RETRIES-wouldblock_retry);
                 }
 #endif
-                break;         /* We have a socket ready for reading */
+                break;       /* We have a socket ready for reading */
             }
             else {
 #ifdef DBINFO_ON
@@ -584,7 +584,7 @@ static void startup_workers(int number_to_start)
  */
 static int idle_spawn_rate = 1;
 #ifndef MAX_SPAWN_RATE
-#define MAX_SPAWN_RATE (64)
+#define MAX_SPAWN_RATE (64)
 #endif
 static int hold_off_on_exponential_spawning;
 
@@ -892,15 +892,15 @@ int ap_mpm_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s)
     }
 
     ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, ap_server_conf,
-               "%s configured -- resuming normal operations",
-               ap_get_server_version());
+            "%s configured -- resuming normal operations",
+            ap_get_server_version());
     ap_log_error(APLOG_MARK, APLOG_INFO, 0, ap_server_conf,
-               "Server built: %s", ap_get_server_built());
+            "Server built: %s", ap_get_server_built());
 #ifdef AP_MPM_WANT_SET_ACCEPT_LOCK_MECH
     ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, ap_server_conf,
-               "AcceptMutex: %s (default: %s)",
-               apr_proc_mutex_name(accept_mutex),
-               apr_proc_mutex_defname());
+            "AcceptMutex: %s (default: %s)",
+            apr_proc_mutex_name(accept_mutex),
+            apr_proc_mutex_defname());
 #endif
     show_server_data();
 
@@ -938,8 +938,8 @@ int ap_mpm_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s)
         ++ap_my_generation;
         ap_scoreboard_image->global->running_generation = ap_my_generation;
 
-       ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, ap_server_conf,
-                   "Graceful restart requested, doing restart");
+        ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, ap_server_conf,
+                "Graceful restart requested, doing restart");
 
         /* Wait for all of the threads to terminate before initiating the restart */
         while (worker_thread_count > 0) {
@@ -978,7 +978,7 @@ static int netware_pre_config(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp
     ap_max_requests_per_child = DEFAULT_MAX_REQUESTS_PER_CHILD;
     ap_extended_status = 0;
 #ifdef AP_MPM_WANT_SET_MAX_MEM_FREE
-       ap_max_mem_free = APR_ALLOCATOR_MAX_FREE_UNLIMITED;
+    ap_max_mem_free = APR_ALLOCATOR_MAX_FREE_UNLIMITED;
 #endif
 
     return OK;
@@ -1045,9 +1045,9 @@ void netware_rewrite_args(process_rec *process)
                         renamescreen(opt_arg);
                     }
                     break;
-                               case 'E':
-                                       /* Don't need to hold the screen open if the output is going to a file */
-                                       hold_screen_on_exit = -1;
+                case 'E':
+                    /* Don't need to hold the screen open if the output is going to a file */
+                    hold_screen_on_exit = -1;
                 default:
                     *(const char **)apr_array_push(mpm_new_argv) =
                         apr_pstrdup(process->pool, optbuf);
@@ -1142,7 +1142,7 @@ static int CommandLineInterpreter(scr_t screenID, const char *commandLine)
             printf("\tDIRECTIVES - Show directives\n");
             printf("\tHELP       - Display this help information\n");
             printf("\tMODULES    - Show a list of the loaded modules\n");
-            printf("\tRESTART    - Reread the configurtion file and restart Apache\n");
+            printf("\tRESTART    - Reread the configuration file and restart Apache\n");
             printf("\tSETTINGS   - Show current thread status\n");
             printf("\tSHUTDOWN   - Shutdown Apache\n");
             printf("\tVERSION    - Display the server version information\n");