]> granicus.if.org Git - apache/commitdiff
Remove some warnings from the perchild MPM
authorRyan Bloom <rbb@apache.org>
Mon, 27 Aug 2001 19:34:34 +0000 (19:34 +0000)
committerRyan Bloom <rbb@apache.org>
Mon, 27 Aug 2001 19:34:34 +0000 (19:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90733 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/experimental/perchild/perchild.c
server/mpm/perchild/perchild.c

index 37d695fe03b1ac1143989fd968627d5c4af627b9..e5ef157ed50a0d72534b8313f04a3aebc2ae87c8 100644 (file)
@@ -580,9 +580,10 @@ static void *worker_thread(apr_thread_t *thd, void *arg)
     apr_pool_t *tpool;         /* Pool for this thread           */
     apr_pool_t *ptrans;                /* Pool for per-transaction stuff */
     apr_socket_t *sd = NULL;
+    volatile int last_pollfd = 0;
+    volatile int thread_just_started = 1;
     int srv;
-    int curr_pollfd, last_pollfd = 0;
-    int thread_just_started = 1;
+    int curr_pollfd;
     int thread_num = *((int *) arg);
     long conn_id = child_num * HARD_THREAD_LIMIT + thread_num;
     apr_pollfd_t *pollset;
@@ -877,7 +878,6 @@ static void child_main(int child_num_arg)
     int i;
     ap_listen_rec *lr;
     apr_status_t rv;
-    apr_thread_t *thread;
 
     my_pid = getpid();
     child_num = child_num_arg;
index 37d695fe03b1ac1143989fd968627d5c4af627b9..e5ef157ed50a0d72534b8313f04a3aebc2ae87c8 100644 (file)
@@ -580,9 +580,10 @@ static void *worker_thread(apr_thread_t *thd, void *arg)
     apr_pool_t *tpool;         /* Pool for this thread           */
     apr_pool_t *ptrans;                /* Pool for per-transaction stuff */
     apr_socket_t *sd = NULL;
+    volatile int last_pollfd = 0;
+    volatile int thread_just_started = 1;
     int srv;
-    int curr_pollfd, last_pollfd = 0;
-    int thread_just_started = 1;
+    int curr_pollfd;
     int thread_num = *((int *) arg);
     long conn_id = child_num * HARD_THREAD_LIMIT + thread_num;
     apr_pollfd_t *pollset;
@@ -877,7 +878,6 @@ static void child_main(int child_num_arg)
     int i;
     ap_listen_rec *lr;
     apr_status_t rv;
-    apr_thread_t *thread;
 
     my_pid = getpid();
     child_num = child_num_arg;