MCPcopy Create free account
hub / github.com/apache/httpd / close_handle_in_child

Function close_handle_in_child

server/log.c:221–231  ·  view source on GitHub ↗

remember to close this handle in the child process * * On Win32 this makes zero sense, because we don't * take the parent process's child procs. * If the win32 parent instead passed each and every * logger write handle from itself down to the child, * and the parent manages all aspects of keeping the * reliable pipe log children alive, this would still * make no sense :) Cripple it on Win

Source from the content-addressed store, hash-verified

219 * make no sense :) Cripple it on Win32.
220 */
221static void close_handle_in_child(apr_pool_t *p, apr_file_t *f)
222{
223#ifndef WIN32
224 read_handle_t *new_handle;
225
226 new_handle = apr_pcalloc(p, sizeof(read_handle_t));
227 new_handle->next = read_handles;
228 new_handle->handle = f;
229 read_handles = new_handle;
230#endif
231}
232
233void ap_logs_child_init(apr_pool_t *p, server_rec *s)
234{

Callers 1

piped_log_spawnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected