| 538 | } |
| 539 | |
| 540 | AP_DECLARE(int) ap_mpm_podx_check(ap_pod_t *pod) |
| 541 | { |
| 542 | char c; |
| 543 | apr_os_file_t fd; |
| 544 | int rc; |
| 545 | |
| 546 | /* we need to surface EINTR so we'll have to grab the |
| 547 | * native file descriptor and do the OS read() ourselves |
| 548 | */ |
| 549 | apr_os_file_get(&fd, pod->pod_in); |
| 550 | rc = read(fd, &c, 1); |
| 551 | if (rc == 1) { |
| 552 | switch (c) { |
| 553 | case AP_MPM_PODX_RESTART_CHAR: |
| 554 | return AP_MPM_PODX_RESTART; |
| 555 | case AP_MPM_PODX_GRACEFUL_CHAR: |
| 556 | return AP_MPM_PODX_GRACEFUL; |
| 557 | } |
| 558 | } |
| 559 | return AP_MPM_PODX_NORESTART; |
| 560 | } |
| 561 | |
| 562 | AP_DECLARE(apr_status_t) ap_mpm_podx_close(ap_pod_t *pod) |
| 563 | { |
no outgoing calls
no test coverage detected