mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
term_emit(): retry on EINTR/EBUSY
This commit is contained in:
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…
x
Reference in New Issue
Block a user