| # | Line 63 | Line 63 | static void | |
|---|---|---|
| 63 | closestream(void *p) | |
| 64 | { | |
| 65 | STREAMOUT *sop = (STREAMOUT *)p; | |
| 66 | + | int status; |
| 67 | if (sop->reclen == CNT_PIPE) | |
| 68 | < | pclose(sop->ofp); |
| 68 | > | status = pclose(sop->ofp); |
| 69 | else | |
| 70 | < | fclose(sop->ofp); |
| 70 | > | status = fclose(sop->ofp); |
| 71 | > | if (status) |
| 72 | > | error(SYSTEM, "error closing output stream"); |
| 73 | free(p); | |
| 74 | } | |
| 75 | ||
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |