ctags: Error out if writing to stdout failed.
MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: cracauer, allanjude Differential Revision: https://reviews.freebsd.org/D40200
This commit is contained in:
parent
7900879eec
commit
5063211781
@ -218,6 +218,8 @@ main(int argc, char **argv)
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ferror(stdout) != 0 || fflush(stdout) != 0)
|
||||
err(1, "stdout");
|
||||
exit(exit_val);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user