apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 57671] apr_proc_detach() should close ALL file descriptors
Date Mon, 16 Mar 2015 15:03:51 GMT

--- Comment #2 from Yann Ylavic <ylavic.dev@gmail.com> ---
apr_proc_detach() does exactly what it is meant to: make the current process
detach from the terminal (close STDIN/OUT/ERR) and, if daemonize is specified
(not the daemonize tool!), make the current process have its own session (go

Should it close all open descriptors now that could/would break existing
applications, those which currently open file descriptors before
apr_proc_detach() and use them after (note that apr_proc_detach() already takes
care of not closing the standard descriptors, but rather reopen them so that
next opened descriptors won't "hijack" STDIN/OUT/ERR).

Maybe the APR could introduce a new function for this, but IMHO this already as
simple as opening fds on a dedicated pool which could then be cleared before
apr_proc_detach() is called. For fds that are not handled by the APR, it seems
quite tricky to let the APR close them...

You are receiving this mail because:
You are the assignee for the bug.

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

View raw message