aboutsummaryrefslogtreecommitdiffstats
path: root/dumpcap.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2009-08-27 23:55:48 +0000
committerGerald Combs <gerald@wireshark.org>2009-08-27 23:55:48 +0000
commit3b4fb8e340535a2f85767568a7bb36151092cc43 (patch)
tree79b2de5ce88c9e86cd2f3b4cbc6bc33c9034a025 /dumpcap.c
parenteaa827d1ea63c1ee5d92c6372058ea4b4854c18f (diff)
Properly set our file descriptor when we're capturing from a pipe on
non-Windows systems. svn path=/trunk/; revision=29590
Diffstat (limited to 'dumpcap.c')
-rw-r--r--dumpcap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dumpcap.c b/dumpcap.c
index cc7e833149..e32191fba2 100644
--- 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: