diff options
author | Gerald Combs <gerald@wireshark.org> | 2012-10-11 16:55:28 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2012-10-11 16:55:28 +0000 |
commit | 552a9c6b1ecee2a1d0b6dbafb92c125937887576 (patch) | |
tree | b693e7acc920a3e7060aa703c46433d032b42eac /capture_sync.c | |
parent | d7c4e6ccf05d1d8a3dbf8527440335770e2cae48 (diff) | |
download | wireshark-552a9c6b1ecee2a1d0b6dbafb92c125937887576.tar.gz |
Make sure sync_interface_stats_close calls sync_pipe_kill on all
platforms. This ham-fistedly fixes a delay when moving from the
"Capture" item to the "Open" and "Learn" items on the welcome screen in
the Qt version.
svn path=/trunk/; revision=45475
Diffstat (limited to 'capture_sync.c')
-rw-r--r-- | capture_sync.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/capture_sync.c b/capture_sync.c index 786437cea0..2d071e7814 100644 --- a/capture_sync.c +++ b/capture_sync.c @@ -1400,6 +1400,13 @@ sync_interface_stats_open(int *data_read_fd, int *fork_child, gchar **msg) int sync_interface_stats_close(int *read_fd, int *fork_child, gchar **msg) { +#ifndef _WIN32 + /* + * Don't bother waiting for the child. sync_pipe_close_command + * does this for us on Windows. + */ + sync_pipe_kill(*fork_child); +#endif return sync_pipe_close_command(read_fd, NULL, fork_child, msg); } |