Windows: Wait for dumpcap to initialize.
authorGerald Combs <gerald@wireshark.org>
Wed, 27 Apr 2016 19:14:11 +0000 (12:14 -0700)
committerGerald Combs <gerald@wireshark.org>
Wed, 27 Apr 2016 23:11:34 +0000 (23:11 +0000)
commite5f4c5c8a80e2f5970b8c1d4fdfc29ab851f0e6f
treef1c26c89c7cae3dcc468508ab61a742853e7d631
parentab6c9f2e2b8898a1592dafacd34cf1fff7ef20b3
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>
capchild/capture_sync.c
dumpcap.c
sync_pipe.h