| 291 | } |
| 292 | #else |
| 293 | static bool config_write_all(int descriptor, const char *json, size_t json_length) { |
| 294 | size_t offset = 0; |
| 295 | while (offset < json_length) { |
| 296 | ssize_t written = write(descriptor, json + offset, json_length - offset); |
| 297 | if (written < 0 && errno == EINTR) { |
| 298 | continue; |
| 299 | } |
| 300 | if (written <= 0) { |
| 301 | return false; |
| 302 | } |
| 303 | offset += (size_t)written; |
| 304 | } |
| 305 | return true; |
| 306 | } |
| 307 | |
| 308 | static bool config_sync_descriptor(int descriptor) { |
| 309 | int result; |
no outgoing calls
no test coverage detected