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 Sat, 08 Sep 2007 15:42:08 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 wrowe@apache.org  2007-09-08 08:42 -------
"It seems improbable that INVALID_HANDLE_VALUE handles could leak anyway, since
they're not real handles."

Those aren't the handles that are leaking; the issue is that we have the parent's
three handles for STDIN/OUT/ERR which if we don't use them (passing INVALID
handles instead), the child still inherits all inheritable standard handles.

My favorite tool for exploring these happens to be sysinternals.com's 
ProcessExplorer, which illustrates these nicely with file pipe entries of
apr.{pid}.{#} when you use the logic in the old server or your suggested patch.

"Making the std* handles un-inheritable seems to conflict with the notes about
STARTF_USESTDHANDLES"

Only if you pass them.  Your patch proposes to remove them from the list of
handles passed to the child, so those parent handles are camped in the child
process without any reference that uses them.  Correct?


-- 
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