Displaying 1 result from an estimated 1 matches for "command_with_lots_of_output".
2012 May 02
0
[PATCH] fish: Add --pipe-error flag to allow detection of errors in pipe commands (RHBZ#803533).
...detect if there were any errors on stdout when the
program exits. This is so we can fail correctly in out of disk space
cases like:
guestfish [...] > output
However the atexit handler just checks that there was any error on
stdout (using ferror). If a pipe command such as:
><fs> command_with_lots_of_output | head
ran at any time during the session, the error flag would be set
(because the underlying writes failed with EPIPE errors).
So the commit first adds a test for ferror (stdout) after each command
that we issue. This brings error handling closer to the point of
failure, and so is generally a...