You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2007/12/22 07:19:44 UTC
DO NOT REPLY [Bug 44128] New: - apr_os_file_put() does not register a cleanup handler.
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=44128>.
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=44128
Summary: apr_os_file_put() does not register a cleanup handler.
Product: APR
Version: HEAD
Platform: Other
OS/Version: other
Status: NEW
Severity: enhancement
Priority: P2
Component: APR
AssignedTo: bugs@apr.apache.org
ReportedBy: iwade@optusnet.com.au
apr_os_file_put() does not register a cleanup handler, which would be desirable behaviour in an
application which aims to pass ownership of a filehandle to APR.
To avoid re-implementing the existing cleanup handlers in client code (as they are not exported), I
have "corrected" the interface to register the normal cleanup handlers by default unless the optional
flag APR_FILE_NOCLEANUP is passed in (in line with apr_file_open()).
I have attached a patch against trunk which:
a/ adds apr_os_file_put_ex() which is the same as apr_os_file_put() except for the cleanup behavior
b/ re-factor apr_file_open() and apr_os_file_put() functions to call apr_os_file_put_ex() internally.
--
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
DO NOT REPLY [Bug 44128] - apr_os_file_put() does not register a cleanup handler.
Posted by bu...@apache.org.
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=44128>.
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=44128
------- Additional Comments From iwade@optusnet.com.au 2007-12-21 22:20 -------
Created an attachment (id=21304)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=21304&action=view)
Patch for unix platforms
--
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