Catalyst::Engine::SCGI - SCGI Engine
This is the SCGI engine.
This class overloads some methods from
Start the SCGI server. If $port is not set default to port 9000. If $detach is set, server will go into the background.
Write finalized headers to socket
Write directly to socket
Read Body content to $_'s set length and direct output to $_.
Performs the first part of daemon initialisation. Specifically, forking. STDERR, etc are still connected to a terminal.
Performs the second part of daemon initialisation. Specifically, disassociates from the terminal.
However, this does not change the current working directory to "/", as normal daemons do. It also does not close all open file descriptors (except STDIN, STDOUT and STDERR, which are re-opened from /dev/null).