From c80f311cb480f6f84542a174e4574aa6e4158d1b Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Fri, 10 Sep 2021 15:18:58 +0200 Subject: [PATCH] pc/serial_unix: (hosted) Abort on unexpected problems. --- src/platforms/pc/serial_unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/pc/serial_unix.c b/src/platforms/pc/serial_unix.c index 9598bf3..1e22ff0 100644 --- a/src/platforms/pc/serial_unix.c +++ b/src/platforms/pc/serial_unix.c @@ -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;