From a50c693657566b1c88dc2ef28d3617637527f827 Mon Sep 17 00:00:00 2001 From: nick black Date: Sat, 27 Feb 2021 17:10:08 -0500 Subject: [PATCH] term_emit(): retry on EINTR/EBUSY --- src/lib/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/internal.h b/src/lib/internal.h index 66af36718..1bf49cc7f 100644 --- a/src/lib/internal.h +++ b/src/lib/internal.h @@ -566,7 +566,7 @@ term_emit(const char* seq, FILE* out, bool flush){ } if(flush){ while(fflush(out) == EOF){ - if(errno != EAGAIN){ + if(errno != EAGAIN && errno != EINTR && errno != EBUSY){ fprintf(stderr, "Error flushing after %zub sequence (%s)\n", strlen(seq), strerror(errno)); return -1; }