Properly set our file descriptor when we're capturing from a pipe on
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 27 Aug 2009 23:55:48 +0000 (23:55 +0000)
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 27 Aug 2009 23:55:48 +0000 (23:55 +0000)
non-Windows systems.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29590 f5534014-38df-0310-8fa8-9805f1628bb7

dumpcap.c

index cc7e83314989435fe8a03ea57eb2c65899eca38e..e32191fba2c975d6e04ab42a740eca4949c3da13 100644 (file)
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -1068,6 +1068,7 @@ cap_pipe_open_live(char *pipename, struct pcap_hdr *hdr, loop_data *ld,
 
   ld->cap_pipe_state = STATE_EXPECT_REC_HDR;
   ld->cap_pipe_err = PIPOK;
+  ld->cap_pipe_fd = fd;
   return;
 
 error: