diff options
author | Guy Harris <guy@alum.mit.edu> | 2010-05-26 02:32:19 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-05-26 02:32:19 +0000 |
commit | d0ac88186d39e6ae2650843acb40cbbed239b170 (patch) | |
tree | 5ef81348bbe1be9f751202477598a4decd3dbba1 /tshark.c | |
parent | 347e7a0052fe0610ec105de34efe935c727fd3ce (diff) |
If dumpcap exits abnormally, report the error.
svn path=/trunk/; revision=32964
Diffstat (limited to 'tshark.c')
-rw-r--r-- | tshark.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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) { |