Ben Laurie writes: > It is possible, but not particularly efficient or portable. ISTR one of > the very first things Apache did was to get rid of that nonsense. More precisely, Apache chose not to adopt it. NCSA 1.4 used an fd-passing scheme in order to handle accepts on its persistent child processes; the parent server accepted connections, and then fd-passed them to the children. When we were trying to figure out what to do about producing a non-fork-per-request version of Apache, Rob Hartill did some experiments which pretty quickly showed that a simpler approach could yield results at least as good. If you really need fd-passing behavior, there's sample code in one of Stevens' books ("Advanced Programming in the Unix Environment"), but it's messy; IIRC, there are multiple variants to deal with the variety of interfaces in different Unix variants. rstReceived on Wednesday, 30 June 1999 02:32:15 EDT
This archive was generated by hypermail pre-2.1.9 : Wednesday, 24 September 2003 06:33:31 EDT