Put special pipe-handling code into libwsutil.
authorGuy Harris <guy@alum.mit.edu>
Sat, 23 Dec 2017 08:05:21 +0000 (00:05 -0800)
committerGuy Harris <guy@alum.mit.edu>
Sat, 23 Dec 2017 20:43:32 +0000 (20:43 +0000)
commit6a949ed1556f239a84a7ccb8d3b207f99cdf71c8
treee4e4ab558e3c6465f6906a6382859152492c040f
parent13a9c636a52ae2c6e2bc2070f4a4f047afe6a6ef
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>
capchild/capture_sync.c
extcap.c
extcap_spawn.c
extcap_spawn.h
wsutil/CMakeLists.txt
wsutil/Makefile.am
wsutil/ws_pipe.c [new file with mode: 0644]
wsutil/ws_pipe.h [new file with mode: 0644]