diff options
author | Gerald Combs <gerald@wireshark.org> | 2007-10-26 16:32:28 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2007-10-26 16:32:28 +0000 |
commit | 8f052940279d78755869b3bd9a1d91da022975d1 (patch) | |
tree | dd39295013303ddb2873ef04b583ab3d31c51c1b /capture_sync.h | |
parent | 381c1f1c9ecc1363f632540de214ef5e66a10124 (diff) | |
download | wireshark-8f052940279d78755869b3bd9a1d91da022975d1.tar.gz |
For the Wireshark/TShark -> dumpcap signal pipe on Windows, use a named
pipe instead of stdin. Add an argument (currently the parent PID) back
to the "-Z" flag and use it to construct the pipe name. This lets us
pass the parent's stdin handle to dumpcap, which lets us capture from
stdin on Windows. Add a comment about checking for the parent process.
In capture_loop.c, remove the wait_forever argument from cap_pipe_select()
since it was always FALSE. Set the timeout under Windows to 250 ms
instead of 250000 ms.
svn path=/trunk/; revision=23279
Diffstat (limited to 'capture_sync.h')
-rw-r--r-- | capture_sync.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/capture_sync.h b/capture_sync.h index a0a9f55185..46eff4a715 100644 --- a/capture_sync.h +++ b/capture_sync.h @@ -58,9 +58,11 @@ extern void sync_pipe_kill(int fork_child); /** Has the parent signalled the child to stop? */ +#define SIGNAL_PIPE_CTRL_ID_NONE "none" #ifdef _WIN32 extern gboolean signal_pipe_check_running(void); +#define SIGNAL_PIPE_FORMAT "\\\\.\\pipe\\wireshark.%s.signal" #endif /** Get an interface list using dumpcap */ |