If we get an error reading the capture file, don't give up - run the
authorGuy Harris <guy@alum.mit.edu>
Mon, 7 Jun 2010 08:42:29 +0000 (08:42 -0000)
committerGuy Harris <guy@alum.mit.edu>
Mon, 7 Jun 2010 08:42:29 +0000 (08:42 -0000)
commitfc18b399fd52559a4851e209e181f9f8c0fd4ae8
treecd9b0590c5c38381d718196afbe5b98dfa6582b9
parenta88d19d9617a40ff2228afe1ad421f7384be7de4
If we get an error reading the capture file, don't give up - run the
taps, etc., so we at least print the statistics for the packets we
*could* read.

Also, if we're printing packet data, and the standard output and
standard error are going to the same place, before printing the error
message for that error, flush the standard output and print a newline to
the standard error, so the error appears after all the packet data, and
has a newline separating it from the packet data.

This fixes bug 4845.

svn path=/trunk/; revision=33124
tshark.c