| 445 | } |
| 446 | |
| 447 | static void copy_request(const char *prog_name, int out, ssize_t req_len) |
| 448 | { |
| 449 | unsigned char *buf; |
| 450 | ssize_t n = read_request(0, &buf, req_len); |
| 451 | if (n < 0) |
| 452 | die_errno("error reading request body"); |
| 453 | write_to_child(out, buf, n, prog_name); |
| 454 | close(out); |
| 455 | free(buf); |
| 456 | } |
| 457 | |
| 458 | static void pipe_fixed_length(const char *prog_name, int out, size_t req_len) |
| 459 | { |
no test coverage detected