Wireshark-commits: [Wireshark-commits] master 827b7dd: Skip only the actual file descriptor close w
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=827b7dd75680b26e2bfddb0dac2f42f1dad69e7a
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
827b7dd 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: I9f7e4d142b3bd598055d806b7ded1cb4c378de8e
Reviewed-on: https://code.wireshark.org/review/11673
Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
Actions performed:
from 630ccbe Make the dfilter time tests work regardless of what time zone the tests are being run in.
adds 827b7dd 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(-)