Tom Donovan wrote:
Steffen wrote:
----- Original Message ----- From: "William A. Rowe, Jr."
<[EMAIL PROTECTED]>
To: <dev@httpd.apache.org>
Sent: Monday, 07 January, 2008 19:52
Subject: Re: Pre-release test tarballs of httpd 1.3.40, 2.0.62 and 2.2.7
available
William A. Rowe, Jr. wrote:
Tom Donovan's confirmed the state of mpm_winnt as again working
with mod perl across service, console, and -X modes (and some
other slightly more obscure models).
I'll backport the correction to 2.0.63 and 2.2.8 and put this
whole issue to bed.
Now committed.
Indeed mod_perl is working in the mentioned cases,
But, in console, it breaks the control over the Dos-box. It is cleared
and
had to kill httpd.exe's manually when I want to stop Apache.
Steffen
Arrrgh! I can't believe I missed that! You're right Steffen.
FWIW - I'm in the habit of shutting Apache down by running a program
which sets the "ap{pid}_shutdown" event, and I didn't even think to try
clicking the [X] in the upper-right corner of the Apache window.
With the current code, closing the child window doesn't stop Apache, it
just removes the window. With the previous patch this wasn't a problem -
Apache shut down OK. I don't really know why, but I'll try to find out.
I am going to hazard a guess. As of pre_config hook, we no longer have
a single handle to the console window; the have all been entirely
detached (stdin/stdout/stderr). In effect, I think win32 is treating
this as being daemonized and will no longer pass console events to the
child.
This should not be true for -X mode, perhaps it is also?
The real answer may just be handling -k stop for a pid in a process,
but that gets just a little tricky with respect to console vs service.
Bill