aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2010-05-07 21:15:24 +0000
committerGerald Combs <gerald@wireshark.org>2010-05-07 21:15:24 +0000
commit0a209d762ee72caf7961cc09675cb3e1f70c1759 (patch)
treef908304a6713e9714f52cc88fc826a04d6f5d98e /file.c
parent52cbbd605fbe3233ca4ed184ff73d2c3eeb0683a (diff)
Zlib has an officially-sanctioned way of clearing EOF when we're tailing
a file. Use it. svn path=/trunk/; revision=32716
Diffstat (limited to 'file.c')
-rw-r--r--file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/file.c b/file.c
index 44895a9bc0..2c6c3eb546 100644
--- a/file.c
+++ b/file.c
@@ -801,6 +801,7 @@ cf_continue_tail(capture_file *cf, volatile int to_read, int *err)
/*g_log(NULL, G_LOG_LEVEL_MESSAGE, "cf_continue_tail: %u new: %u", cf->count, to_read);*/
+ wtap_cleareof(cf->wth);
while (to_read != 0 && (wtap_read(cf->wth, err, &err_info, &data_offset))) {
if (cf->state == FILE_READ_ABORTED) {
/* Well, the user decided to exit Wireshark. Break out of the