| 113 } |
113 } |
| 114 ZERO(handler, sizeof(CGIHandler)); |
114 ZERO(handler, sizeof(CGIHandler)); |
| 115 handler->process.out[0] = -1; |
115 handler->process.out[0] = -1; |
| 116 handler->process.out[1] = -1; |
116 handler->process.out[1] = -1; |
| 117 handler->process.err[0] = -1; |
117 handler->process.err[0] = -1; |
| 118 handler->process.err[0] = -1; |
118 handler->process.err[1] = -1; |
| 119 handler->process.in[0] = -1; |
119 handler->process.in[0] = -1; |
| 120 handler->process.in[0] = -1; |
120 handler->process.in[1] = -1; |
| 121 handler->path = path; |
121 handler->path = path; |
| 122 |
122 |
| 123 int ret = cgi_start(rq, &handler->process, path, argv, env); |
123 int ret = cgi_start(rq, &handler->process, path, argv, env); |
| 124 if(ret != REQ_PROCEED) { |
124 if(ret != REQ_PROCEED) { |
| 125 close_std_pipes((int[6]){ |
125 close_std_pipes((int[6]){ |