summaryrefslogtreecommitdiff
path: root/dumpcap.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2016-04-27 12:14:11 -0700
committerGerald Combs <gerald@wireshark.org>2016-04-27 23:11:34 +0000
commite5f4c5c8a80e2f5970b8c1d4fdfc29ab851f0e6f (patch)
treef1c26c89c7cae3dcc468508ab61a742853e7d631 /dumpcap.c
parentab6c9f2e2b8898a1592dafacd34cf1fff7ef20b3 (diff)
downloadwireshark-e5f4c5c8a80e2f5970b8c1d4fdfc29ab851f0e6f.tar.gz
Windows: Wait for dumpcap to initialize.
As the MSDN documentation says, "CreateProcess returns without waiting for the new process to finish its initialization." Add an SP_INIT sync pipe indicator on Windows and use it in dumpcap to signal to its parent that it has started up. Change-Id: I88a4c158871dbe2dd6eba13434e92c5d4b1c2e4b Reviewed-on: https://code.wireshark.org/review/15132 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'dumpcap.c')
-rw-r--r--dumpcap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dumpcap.c b/dumpcap.c
index 21230b7ec7..20389eaa0d 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -4131,6 +4131,8 @@ main(int argc, char *argv[])
exit_main(1);
}
}
+ /* Let our parent know we're fully initialized. */
+ pipe_write_block(2, SP_INIT, "All systems go.");
#endif
break;