[BACK]Return to run.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / awk

Diff for /src/usr.bin/awk/run.c between version 1.63 and 1.64

version 1.63, 2020/07/02 19:06:22 version 1.64, 2020/07/20 18:55:15
Line 1977 
Line 1977 
                         continue;                          continue;
                 if (ferror(files[i].fp))                  if (ferror(files[i].fp))
                         FATAL( "i/o error occurred on %s", files[i].fname );                          FATAL( "i/o error occurred on %s", files[i].fname );
                   if (files[i].fp == stdin)
                           continue;
                 if (files[i].mode == '|' || files[i].mode == LE)                  if (files[i].mode == '|' || files[i].mode == LE)
                         stat = pclose(files[i].fp) == -1;                          stat = pclose(files[i].fp) == -1;
                   else if (files[i].fp == stdout || files[i].fp == stderr)
                           stat = fflush(files[i].fp) == EOF;
                 else                  else
                         stat = fclose(files[i].fp) == EOF;                          stat = fclose(files[i].fp) == EOF;
                 if (stat)                  if (stat)

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.64