pc/serial_unix: (hosted) Abort on unexpected problems.

This commit is contained in:
Uwe Bonnes 2021-09-10 15:18:58 +02:00 committed by Rachel Mant
parent 2d4d6aa65a
commit c80f311cb4
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ int platform_buffer_write(const uint8_t *data, int size)
s = write(fd, data, size);
if (s < 0) {
DEBUG_WARN("Failed to write\n");
return(-2);
exit(-2);
}
return size;