add: else if (fp == stdout) {  if (fflush (fp) != 0) die (_("fflush failed"), file); }
context: xfclose (FILE *fp, char const *file){  if (fp == stdin)    {      /* Allow reading stdin from tty more than once. */      if (feof (fp))	clearerr (fp);    }  else    {      if (fclose (fp) != 0)	die (_("close failed"), file);    }}