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

Function ap_mpm_podx_check

server/mpm_unix.c:540–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

538}
539
540AP_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
562AP_DECLARE(apr_status_t) ap_mpm_podx_close(ap_pod_t *pod)
563{

Callers 3

child_mainFunction · 0.85
child_mainFunction · 0.85
mpm_common.hFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected