]> git.cameronkatri.com Git - mandoc.git/commit
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)
commit3710e49fec4d10ef6acfb714eabf077a7aaa3ce4
treecf937ada8dc7babca0b24a0985053b5fa7c435e1
parentdc43a8e1c289a4a212ae1fbc154869d416d4b81b
When the stdout stream gets broken, there is no point in reading
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.
main.c