URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=019557eb88d13007fe44995137b586bc6fba0c8b
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master-2.0
Repository: wireshark
Commits:
019557e by Guy Harris (guy@xxxxxxxxxxxx):
Skip only the actual file descriptor close when writing to stdout.
Have a "this is stdout" flag for a wtap_dumper, and have "open the
standard output for dumping" routines that set that flag. When closing
a wtap_dumper, do most of the work regardless of whether we're writing
to the standard output or not (so that everything gets written out) and
only skip the closing of the underlying file descriptor.
Change-Id: I80176dad0d9b5dff1b64c7d4703e0ab36501f547
Reviewed-on: https://code.wireshark.org/review/11674
Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
Actions performed:
from 6b5837c GIOP dissector: Replies are not correctly associated with requests
adds 019557e Skip only the actual file descriptor close when writing to stdout.
Summary of changes:
editcap.c | 8 ++--
randpkt.c | 2 +-
reordercap.c | 4 +-
tshark.c | 4 +-
wiretap/file_access.c | 110 +++++++++++++++++++++++++++++++++++------------
wiretap/file_wrappers.c | 16 +++++--
wiretap/file_wrappers.h | 2 +-
wiretap/wtap-int.h | 1 +
wiretap/wtap.h | 26 +++++++++++
9 files changed, 131 insertions(+), 42 deletions(-)