|
Posted by petersprc on 11/21/06 06:22
If it's a C program, using a library like this might simplify things:
http://www.boutell.com/cgic/.
If you haven't been here yet, there's an overview of Apache CGI at:
http://httpd.apache.org/docs/1.3/howto/cgi.html.
For internals, you may want to take a look at mod_cgi.c in the Apache
source...
David T. Ashley wrote:
> "petersprc" <petersprc@gmail.com> wrote in message
> news:1163999132.953698.153670@h48g2000cwc.googlegroups.com...
> > As far as I know, in the event of a disconnect, Apache will send a
> > SIGTERM to the child, and then, if needed, wait up to approximately 3
> > seconds and send a SIGKILL. ...
>
> Thanks. The info was very helpful.
>
> The hard part for me is that I've searched all over the web and found
> various documents that outline the stdin/stdout interface, but process
> termination was not discussed anywhere I've found. That seems odd, because
> SIGTERM and SIGKILL are part of the interface.
>
> If you can recommend any good books or authoritative references ... I'm just
> getting started (never written a compiled 'C' CGI-BIN before ... have just
> used scripting languages like PHP, and nearly all of that is handled for
> you).
[Back to original message]
|