summaryrefslogtreecommitdiff
path: root/capture_sync.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2012-10-11 16:55:28 +0000
committerGerald Combs <gerald@wireshark.org>2012-10-11 16:55:28 +0000
commit552a9c6b1ecee2a1d0b6dbafb92c125937887576 (patch)
treeb693e7acc920a3e7060aa703c46433d032b42eac /capture_sync.c
parentd7c4e6ccf05d1d8a3dbf8527440335770e2cae48 (diff)
downloadwireshark-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.c7
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);
}