]> git.cameronkatri.com Git - mandoc.git/commitdiff
When the stdout stream gets broken, there is no point in reading
authorIngo Schwarze <schwarze@openbsd.org>
Mon, 21 Aug 2017 15:42:58 +0000 (15:42 +0000)
committerIngo Schwarze <schwarze@openbsd.org>
Mon, 21 Aug 2017 15:42:58 +0000 (15:42 +0000)
any more input files, and it would be misleading to start a parser,
because that would show randomly truncated text.
Instead, print an error message and exit the program.

Issue found by Leah Neukirchen <leah at vuxu dot org>, who was
surprised to see half a manpage when her /tmp/ overflew.


No differences found