diff --git a/shadermeh.c b/shadermeh.c index f02054c..dccc65b 100644 --- a/shadermeh.c +++ b/shadermeh.c @@ -51,7 +51,7 @@ static int write_retry(int fd, const void *buffer, size_t size) int ret = write(fd, buffer, size); if (ret < 0) { - if (errno == EINTR) + if (errno == EINTR || errno == EAGAIN) continue; perror("write"); return -1;