https://bz.apache.org/bugzilla/show_bug.cgi?id=69256

--- Comment #2 from timothyjmills <thelmate...@hotmail.com> ---
(In reply to Christopher Head from comment #0)
> The documentation for RewriteMap prg: here
> <https://httpd.apache.org/docs/2.4/rewrite/rewritemap.html#prg> left me with
> a number of questions that I could not find the answer to:
> * “it expects one argument via STDIN” What exactly does this mean? Each key
> fed to stdin is followed by a newline? A space? Something else? There’s an
> example, but that’s not very useful for those of us who don’t read Perl.
> * “If there is no corresponding lookup value, the map program should return
> the four-character string "NULL" to indicate this.” Does this mean there’s
> no way for the mapping program to return the actual literal string NULL as
> the mapped value, since trying to do so indicates failure to map instead?
> * The documentation explains how stdin and stdout are used. What does Apache
> do with the mapping program’s stderr? Connect it to /dev/null? Not open it
> at all? Something else?
> * What happens if the mapping program terminates? The text “Remember that
> there is only one copy of the program, started at server startup.” suggests
> that it will just stay dead and mappings will fail until Apache is
> restarted, but is that actually true?
> * What happens when Apache terminates? Does it send a signal to terminate
> the mapping program? If so, what signal? Or does it just close stdin and
> expect the mapping program to terminate when it sees EOF? Since the mapping
> program is a child process of Apache, does Apache wait for it to terminate
> before finishing shutdown, or does it orphan it and let PID 1 deal with it?

Error reporting addresses some of the prg RewriteMap features that help you
better understand the need to more clearly explain how your program handles
input and behavior.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscr...@httpd.apache.org
For additional commands, e-mail: docs-h...@httpd.apache.org

Reply via email to