aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2010-05-27 23:55:04 +0000
committerGerald Combs <gerald@wireshark.org>2010-05-27 23:55:04 +0000
commit69d739246716fd744aab79ce6d65919bc6393df9 (patch)
tree6a241efcfa63bd67cec879e882876c93068b7e6f /file.c
parentece0ada557432588b8dbe66c2c877e61fef9a78e (diff)
Add cf_fake_continue_tail() which is called when real-time capture
updates are off and which sets the capture file state to a value that won't cause an assertion when the user stops capturing. Fixes bug 4035. svn path=/trunk/; revision=33005
Diffstat (limited to 'file.c')
-rw-r--r--file.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/file.c b/file.c
index f7395b4c2e..779fcf8ed3 100644
--- a/file.c
+++ b/file.c
@@ -904,6 +904,11 @@ cf_continue_tail(capture_file *cf, volatile int to_read, int *err)
return CF_READ_OK;
}
+void
+cf_fake_continue_tail(capture_file *cf) {
+ cf->state = FILE_READ_DONE;
+}
+
cf_read_status_t
cf_finish_tail(capture_file *cf, int *err)
{