| 107 | } |
| 108 | |
| 109 | size_t cmDebuggerPipeConnection_POSIX::read(void* buffer, size_t n) |
| 110 | { |
| 111 | size_t result = 0; |
| 112 | if (rw_pipe >= 0) { |
| 113 | result = ::read(rw_pipe, buffer, n); |
| 114 | if (result == 0) { |
| 115 | close(); |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | return result; |
| 120 | } |
| 121 | |
| 122 | bool cmDebuggerPipeConnection_POSIX::write(void const* buffer, size_t n) |
| 123 | { |