Lines Matching defs:rv
44 static void exit_error(apr_status_t rv, const char *func)
51 apr_strerror(rv, buffer, sizeof(buffer)));
63 apr_status_t rv;
78 rv = apr_getopt_init(&gopt, pool, argc, argv);
79 if (rv) {
87 rv = apr_getopt(gopt, "c:p:i:N:", &opt, &arg);
88 if (APR_STATUS_IS_EOF(rv)) {
90 } else if (rv) {
126 rv = apr_sockaddr_info_get(&skaddr, interface, APR_UNSPEC, port, 0, pool);
127 if (rv) {
128 exit_error(rv, "apr_sockaddr_info_get");
131 rv = apr_socket_create(&skt, skaddr->family, SOCK_STREAM, APR_PROTO_TCP, pool);
132 if (rv) {
133 exit_error(rv, "apr_socket_create");
136 rv = apr_socket_opt_set(skt, APR_SO_REUSEADDR, 1);
137 if (rv) {
138 exit_error(rv, "apr_socket_opt_set(APR_SO_REUSEADDR)");
141 rv = apr_socket_bind(skt, skaddr);
142 if (rv) {
143 exit_error(rv, "apr_socket_bind");
146 rv = apr_socket_listen(skt, 1024);
147 if (rv) {
148 exit_error(rv, "apr_socket_listen");
151 rv = apr_proc_detach(APR_PROC_DETACH_DAEMONIZE);
152 if (rv) {
153 exit_error(rv, "apr_proc_detach");
163 rv = apr_proc_fork(&proc, pool);
164 if (rv == APR_INCHILD) {
180 rv = apr_os_file_put(&infd, &oft, APR_READ | APR_WRITE, pool);
181 if (rv) {
185 rv = apr_os_sock_get(&oskt, skt);
186 if (rv) {
190 rv = apr_os_file_put(&skwrapper, &oskt, APR_READ | APR_WRITE,
192 if (rv) {
196 rv = apr_file_dup2(infd, skwrapper, pool);
197 if (rv) {
208 } else if (rv == APR_INPARENT) {
213 exit_error(rv, "apr_proc_fork");