Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-bugs: [Wireshark-bugs] [Bug 1338] New: tshark doesn't die when writing on a closed pip

Date: Wed, 31 Jan 2007 16:38:50 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1338

           Summary: tshark doesn't die when writing on a closed pipe !!!
           Product: Wireshark
           Version: 0.99.4
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Medium
         Component: TShark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: pierre.juhen@xxxxxxxxxx


Build Information:
Paste the COMPLETE build information from "Help->About Wireshark", "wireshark
-v", or "tshark -v".
--
I use tshark through an openssl tunnel.

If the tunnel closes, tshark goes on.

This is due to the fact, when writing to a pipe, it flushes the output, but the
result of the flush is ignored.

Therefore, it goes on capturing, fwrite is successful (in the FILE buffer), and
flush fails.

Two ways to correct that :
 taking care of SIGPIPE (now it is SIG_IGNed)
 taking care of the error generated by fflush in the different library
functions.

Thanks,

Pierre JUHEN


-- 
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.