diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-05-17 18:40:23 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-05-17 18:40:23 +0000 |
commit | 7940a64ea95aeb39207b714f0a0e5fa4b377efb6 (patch) | |
tree | 95c2cc5755ba14006af226237a6f07eebd5f7e2c /capture.c | |
parent | 3effa69b18a9572e5415b6bdf248e0d94f01c262 (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32843 f5534014-38df-0310-8fa8-9805f1628bb7
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; |