From 1493f913a78e4ab63c804a201827744321334697 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Fri, 7 Aug 2020 22:10:18 -0400 Subject: [PATCH] Don't use tcdrain() in patty_kiss_frame_send() Don't use tcdrain() in patty_kiss_frame_send(), as this may cause a program to block indefinitely on BSD systems --- src/kiss.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/kiss.c b/src/kiss.c index eed2c46..30adf45 100644 --- a/src/kiss.c +++ b/src/kiss.c @@ -114,10 +114,6 @@ ssize_t patty_kiss_frame_send(int fd, goto error_io; } - if (tcdrain(fd) < 0) { - goto error_io; - } - return len; error_io: