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 03:24:25 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-07 20:24 -------
re: leaking handles - I cannot see any file handle leaks checking with the
'handle.exe' utility from:
 http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/Handle.mspx
It seems improbable that INVALID_HANDLE_VALUE handles could leak anyway, since
they're not real handles.

Making the std* handles un-inheritable seems to conflict with the notes about
STARTF_USESTDHANDLES in:  
 http://msdn2.microsoft.com/en-us/library/ms686331.aspx
which says:
"If this flag (STARTF_USESTDHANDLES) is specified when calling one of the
process creation functions, the handles must be inheritable and the function's
bInheritHandles parameter must be set to TRUE."

It's a shame that the practice of checking specifically for INVALID_HANDLE_VALUE
on Windows ever got started in the first place, but it's a practice that appears
to go back many years.

-tom-

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