aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-05-26 02:32:19 +0000
committerGuy Harris <guy@alum.mit.edu>2010-05-26 02:32:19 +0000
commitd0ac88186d39e6ae2650843acb40cbbed239b170 (patch)
tree5ef81348bbe1be9f751202477598a4decd3dbba1 /tshark.c
parent347e7a0052fe0610ec105de34efe935c727fd3ce (diff)
If dumpcap exits abnormally, report the error.
svn path=/trunk/; revision=32964
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/tshark.c b/tshark.c
index b51b98b9cb..aa0f9ef098 100644
--- a/tshark.c
+++ b/tshark.c
@@ -2179,10 +2179,16 @@ capture_input_drops(capture_options *capture_opts _U_, guint32 dropped)
}
-/* capture child closed its side of the pipe, do the required cleanup */
+/*
+ * Capture child closed its side of the pipe, report any error and
+ * do the required cleanup.
+ */
void
-capture_input_closed(capture_options *capture_opts)
+capture_input_closed(capture_options *capture_opts, gchar *msg)
{
+ if (msg != NULL)
+ fprintf(stderr, "tshark: %s\n", msg);
+
report_counts();
if(capture_opts->cf != NULL && ((capture_file *) capture_opts->cf)->wth != NULL) {