Created attachment 31991 [details] Return success if socket is already closed Greetings, The attached patch, which applies cleanly to APR HEAD, addresses an issue we experienced in using APR with the FreeSWITCH project. We've been running this patch in FreeSWITCH's version of APR for years and would like to see it included upstream if possible. Please let us know your thoughts and if any changes are appropriate we'll be happy to make them and propose a revised patch. The patch series being proposed here is also available on the master branch of this repository: https://github.com/traviscross/apr/ Author: Anthony Minessale <anthm@freeswitch.org> Date: Tue Aug 27 13:59:24 2013 -0400 Return success if socket is already closed Prior to this commit, socket_cleanup would return an error if the socket had already been closed. With this commit we return success instead. This is useful, for example, if a socket is closed manually and we then try to close it again as part of the cleanup of a pool. Signed-off-by: Anthony Minessale <anthm@freeswitch.org> Signed-off-by: Travis Cross <tc@traviscross.com>