From e5f4c5c8a80e2f5970b8c1d4fdfc29ab851f0e6f Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Wed, 27 Apr 2016 12:14:11 -0700 Subject: 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 --- sync_pipe.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sync_pipe.h') 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 */ -- cgit v1.2.3