apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43329] - apr_proc_create behavior change
Date Sun, 09 Sep 2007 19:55:53 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43329>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43329





------- Additional Comments From Tom.Donovan@acm.org  2007-09-09 12:55 -------
I've built the 2nd patch with VC6 and VS8 and tested on Win2k and WinXP.

While it does as expected, it will not allow httpd 2.2.6 to run as a Windows
service.

server/log.c has changed for 2.2.6 in a way that is incompatible with fastcgi
requirements:

  the mpm_winnt child process is created with child_in as the only handle 
  supplied in attr.
  log.c now *requires* a valid stderr, so one must be created or inherited.
  Prior to 2.2.6 it could survive until the parent pipe got set up.

  fastcgi processes are also created with child_in as the only handle 
  supplied in attr.  
  fastcgi requires that both out & err be INVALID_HANDLE_VALUE

When httpd is started as a service, all three handles are zero (and invalid), so
inheritance can't help.  When started as a normal process, stderr gets inherited
in APR 1.2.11 (either with or without the patch).  When started as a service, if
the patch sets stderr=INVALID_HANDLE_VALUE, this breaks log.c.

In other words, the rule I proposed (... all 3 original handles are inheritable
...) won't work for Windows services.

I don't see a way to solve this for both log.c and fastcgi, short of changes to
both APR's win proc.c and changes to httpd.   Any ideas?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message