diff options
author | Gerald Combs <gerald@wireshark.org> | 2016-04-27 12:14:11 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2016-04-27 23:11:34 +0000 |
commit | e5f4c5c8a80e2f5970b8c1d4fdfc29ab851f0e6f (patch) | |
tree | f1c26c89c7cae3dcc468508ab61a742853e7d631 /dumpcap.c | |
parent | ab6c9f2e2b8898a1592dafacd34cf1fff7ef20b3 (diff) | |
download | wireshark-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |