summaryrefslogtreecommitdiff
path: root/sync_pipe.h
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 /sync_pipe.h
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 'sync_pipe.h')
-rw-r--r--sync_pipe.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sync_pipe.h b/sync_pipe.h
index 455b2b4bd6..0fac40b5f0 100644
--- a/sync_pipe.h
+++ b/sync_pipe.h
@@ -62,6 +62,7 @@
* Win32 only: Indications sent out on the signal pipe (from parent to child)
* (UNIX-like sends signals for this)
*/
+#define SP_INIT 'I' /* child process initialized */
#define SP_QUIT 'Q' /* "gracefully" capture quit message (SIGUSR1) */
/* write a single message header to the recipient pipe */