From ad7b11e6e8cdf70c2ed96ce003bc049b7693c406 Mon Sep 17 00:00:00 2001 From: Erik Moqvist Date: Sat, 19 Oct 2019 17:08:04 +0200 Subject: [PATCH] Exit if output speed cannot be set. --- src/tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tty.c b/src/tty.c index bee6f9f..b1e24cf 100644 --- a/src/tty.c +++ b/src/tty.c @@ -323,7 +323,7 @@ void tty_configure(void) } // Set output speed - cfsetospeed(&tio, baudrate); + status = cfsetospeed(&tio, baudrate); if (status == -1) { error_printf("Could not configure output speed (%s)", strerror(errno));