term_emit(): retry on EINTR/EBUSY

pull/1377/head
nick black 3 years ago committed by Nick Black
parent b93960cab1
commit a50c693657

@ -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;
}

Loading…
Cancel
Save