static FILE *logfile;
static int log_error_fd = -1;
+int log_got_error=0;
struct {
int code;
while (err_list_head) {
struct err_list *el = err_list_head;
int n = write(log_error_fd, el->buf+el->written, el->len - el->written);
+ /* don't check for an error if the best way of handling the error is
+ to ignore it */
if (n == -1) break;
if (n > 0) {
el->written += n;
}
if (code == FERROR) {
+ log_got_error = 1;
f = stderr;
}