| 121 | #define PFL_FAIL ((void*)(intptr_t)1) |
| 122 | |
| 123 | std::string OutputDataSocket::create_shutdown_pipe(int *pipe_rd, int *pipe_wr) |
| 124 | { |
| 125 | int pipefd[2]; |
| 126 | if (pipe_cloexec(pipefd, 0) < 0) { |
| 127 | int e = errno; |
| 128 | ostringstream oss; |
| 129 | oss << "OutputDataSocket::create_shutdown_pipe error: " << cpp_strerror(e); |
| 130 | return oss.str(); |
| 131 | } |
| 132 | |
| 133 | *pipe_rd = pipefd[0]; |
| 134 | *pipe_wr = pipefd[1]; |
| 135 | return ""; |
| 136 | } |
| 137 | |
| 138 | std::string OutputDataSocket::bind_and_listen(const std::string &sock_path, int *fd) |
| 139 | { |
nothing calls this directly
no test coverage detected