in reply to Re^2: cgi thread creation segfault
in thread cgi thread creation segfault
I thought apache could create threads while executing my perl script...
The worker model uses threads for handling multiple requests. From the docs:
"A single control process (the parent) is responsible for launching child processes. Each child process creates a fixed number of server threads as specified in the ThreadsPerChild directive, as well as a listener thread which listens for connections and passes them to a server thread for processing when they arrive."
This is not the same as creating threads "while executing" the Perl script. The situation you have is that one of the worker threads - with Perl being an integral part of them - is again trying to create further threads. I'm not too familiar with the implementation details of the worker module to tell if that's supposed to work or not... (Practice shows, it doesn't :)
|
|---|