| 426 | } |
| 427 | |
| 428 | static void initialize_child(apr_pool_t *p, server_rec *s) |
| 429 | { |
| 430 | apr_status_t sts; |
| 431 | |
| 432 | if (!client_shm) { |
| 433 | return; |
| 434 | } |
| 435 | |
| 436 | /* Get access to rmm in child */ |
| 437 | sts = apr_rmm_attach(&client_rmm, |
| 438 | NULL, |
| 439 | apr_shm_baseaddr_get(client_shm), |
| 440 | p); |
| 441 | if (sts != APR_SUCCESS) { |
| 442 | log_error_and_cleanup("failed to attach to rmm", sts, s); |
| 443 | return; |
| 444 | } |
| 445 | |
| 446 | sts = apr_global_mutex_child_init(&client_lock, |
| 447 | apr_global_mutex_lockfile(client_lock), |
| 448 | p); |
| 449 | if (sts != APR_SUCCESS) { |
| 450 | log_error_and_cleanup("failed to create lock (client_lock)", sts, s); |
| 451 | return; |
| 452 | } |
| 453 | sts = apr_global_mutex_child_init(&opaque_lock, |
| 454 | apr_global_mutex_lockfile(opaque_lock), |
| 455 | p); |
| 456 | if (sts != APR_SUCCESS) { |
| 457 | log_error_and_cleanup("failed to create lock (opaque_lock)", sts, s); |
| 458 | return; |
| 459 | } |
| 460 | } |
| 461 | |
| 462 | /* |
| 463 | * configuration code |
nothing calls this directly
no test coverage detected