diff options
author | Gerald Combs <gerald@wireshark.org> | 2010-05-07 21:15:24 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2010-05-07 21:15:24 +0000 |
commit | 0a209d762ee72caf7961cc09675cb3e1f70c1759 (patch) | |
tree | f908304a6713e9714f52cc88fc826a04d6f5d98e /file.c | |
parent | 52cbbd605fbe3233ca4ed184ff73d2c3eeb0683a (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |