Commit 7e4383cd authored by Jeff Trawick's avatar Jeff Trawick
Browse files

Pass the correct worker thread id to worker_thread() when the initial

thread of the child process becomes a worker thread.

Prior to this, perchild segfaulted over and over at startup.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88396 13f79535-47bb-0310-9956-ffa450edef68
parent 4fc31979
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -917,8 +917,8 @@ static void child_main(int child_num_arg)
        }
    }

    /* This thread will be the one responsible for handling signals */
    worker_thread(&worker_thread_free_ids[max_threads]);
    /* This thread will be be a worker thread too. */
    worker_thread(&worker_thread_free_ids[max_threads - 1]);

}

+2 −2
Original line number Diff line number Diff line
@@ -917,8 +917,8 @@ static void child_main(int child_num_arg)
        }
    }

    /* This thread will be the one responsible for handling signals */
    worker_thread(&worker_thread_free_ids[max_threads]);
    /* This thread will be be a worker thread too. */
    worker_thread(&worker_thread_free_ids[max_threads - 1]);

}