aboutsummaryrefslogtreecommitdiffstats
path: root/capture.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-05-17 18:40:23 +0000
committerGuy Harris <guy@alum.mit.edu>2010-05-17 18:40:23 +0000
commit991c5e9898d057f6b7d2f41397f460931ef5ff83 (patch)
tree95c2cc5755ba14006af226237a6f07eebd5f7e2c /capture.c
parent01c752e5efd10bdc5ca280d5e03dd19be466d9cb (diff)
When dumpcap is run to get an interface list, interface capabilities, or
interface statistics, have its error messages come out as sync-pipe errors, have it send a sync-pipe "success" message on success, and have the callers get that message and display it. svn path=/trunk/; revision=32843
Diffstat (limited to 'capture.c')
-rw-r--r--capture.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/capture.c b/capture.c
index 6b799e0e24..ad3bb3458b 100644
--- a/capture.c
+++ b/capture.c
@@ -721,12 +721,17 @@ void
capture_stat_stop(if_stat_cache_t *sc) {
GList *sc_entry;
if_stat_cache_item_t *sc_item;
+ int ret;
gchar *msg;
if (!sc)
return;
- sync_interface_stats_close(&sc->stat_fd, &sc->fork_child, &msg);
+ ret = sync_interface_stats_close(&sc->stat_fd, &sc->fork_child, &msg);
+ if (ret == -1) {
+ /* XXX - report failure? */
+ g_free(msg);
+ }
for (sc_entry = sc->cache_list; sc_entry != NULL; sc_entry = g_list_next(sc_entry)) {
sc_item = sc_entry->data;