| 120 | } |
| 121 | |
| 122 | bool cmDebuggerPipeConnection_POSIX::write(void const* buffer, size_t n) |
| 123 | { |
| 124 | bool result = false; |
| 125 | if (rw_pipe >= 0) { |
| 126 | result = ::write(rw_pipe, buffer, n) >= 0; |
| 127 | if (!result) { |
| 128 | close(); |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | return result; |
| 133 | } |
| 134 | |
| 135 | cmDebuggerPipeClient_POSIX::cmDebuggerPipeClient_POSIX(std::string name) |
| 136 | : PipeName(std::move(name)) |