diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-12-23 00:05:21 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-12-23 20:43:32 +0000 |
commit | 6a949ed1556f239a84a7ccb8d3b207f99cdf71c8 (patch) | |
tree | e4e4ab558e3c6465f6906a6382859152492c040f /extcap_spawn.h | |
parent | 13a9c636a52ae2c6e2bc2070f4a4f047afe6a6ef (diff) |
Put special pipe-handling code into libwsutil.
Ask, in a comment, why we're doing PeekNamedPipe() when we're trying
to read everyting in the pipe, up to the EOF, into a string.
On UN*X, do the same "read up to an EOF and then NUL-terminate the
result" stuff that we did on Windows; nothing guarantees that, on all
UN*Xes, in all circumstances, until the end of time, world without end,
amen, we can do one read and get the entire string.
Change-Id: I578802b23fec1051139eaefd9a09fe2a6de06a11
Reviewed-on: https://code.wireshark.org/review/24959
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'extcap_spawn.h')
-rw-r--r-- | extcap_spawn.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/extcap_spawn.h b/extcap_spawn.h index 7296cd9bb6..fafce74268 100644 --- a/extcap_spawn.h +++ b/extcap_spawn.h @@ -36,7 +36,6 @@ GPid extcap_spawn_async ( extcap_userdata * userdata, GPtrArray * args ); #ifdef _WIN32 gboolean extcap_wait_for_pipe(HANDLE * pipe_handles, int num_pipe_handles, HANDLE pid); -void win32_readfrompipe(HANDLE read_pipe, gint32 max_buffer, gchar * buffer); #endif #endif |