diff options
author | Guy Harris <guy@alum.mit.edu> | 2010-05-17 18:40:23 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-05-17 18:40:23 +0000 |
commit | 991c5e9898d057f6b7d2f41397f460931ef5ff83 (patch) | |
tree | 95c2cc5755ba14006af226237a6f07eebd5f7e2c /capture.c | |
parent | 01c752e5efd10bdc5ca280d5e03dd19be466d9cb (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.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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; |