Add another check for output errors when printing.

svn path=/trunk/; revision=9829
This commit is contained in:
Guy Harris 2004-01-25 01:19:48 +00:00
parent 7502ac216a
commit 6efa00c5f4
1 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
/* tethereal.c
*
* $Id: tethereal.c,v 1.225 2004/01/25 00:58:12 guy Exp $
* $Id: tethereal.c,v 1.226 2004/01/25 01:19:48 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -2824,6 +2824,10 @@ wtap_dispatch_cb_print(guchar *user, const struct wtap_pkthdr *phdr,
if (line_buffered)
fflush(stdout);
if (ferror(stdout)) {
show_print_file_io_error(errno);
exit(2);
}
epan_dissect_free(edt);
clear_fdata(&fdata);