Changeset bcfe4ea


Ignore:
Timestamp:
07/20/14 22:23:57 (6 years ago)
Author:
Richard Sanger <rsangerarj@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
54834a1
Parents:
049a700
Message:

Fix Linux native format which was using the socket when running multiple threads.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_linux.c

    rb4b6b75 rbcfe4ea  
    12151215static int linuxnative_pread_packet(libtrace_t *libtrace, libtrace_thread_t *t, libtrace_packet_t *packet)
    12161216{
    1217         int fd = FORMAT(libtrace->format_data)->fd;
    1218         fprintf(stderr, "Thread number is #%d\n", t->perpkt_num);
     1217        int fd = PERPKT_FORMAT(t)->fd;
     1218        //fprintf(stderr, "Thread number is #%d fd=%d\n", t->perpkt_num, PERPKT_FORMAT(t)->fd);
    12191219        return linuxnative_read_packet_fd(libtrace, packet, fd, 1);
    12201220}
Note: See TracChangeset for help on using the changeset viewer.