How to spawn a fastcgi process in windows natively?
"Ales Katona" <[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello, We're making a small http server which has fastcgi support (mainly for php for now). I've made a FastCGI "spawner" function which works in unix with fork/dup/socketstuff. The problem I have now is that I can't figure out how to do this in windows? I need a native (winapi, no cygwin or such) solution. I've found out CreateProcess which can send environment variables and inherit handles to the "child" in windows, but it can't continue to execute my code (so I can't start to listen for UDP on handle 0) The only way I come to think of is to first make a "helper" program which will act as a "child". Then from our server execute the program which will do the Listen stuff, and then CreateProcess into PHP or whatever. This is however troublesome to watch from the server (eg: the status of the final "child") How can I directly (eg: right from the server) spawn a fcgi process? Thanks, Ales Katona -- Feel the power of Opensource. Feel the power of Free Pascal. ___________________________________ fastcgi-developers mailing list http://fastcgi.com/fastcgi-developers/