Changeset 3198df4


Ignore:
Timestamp:
03/13/07 15:39:44 (14 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, 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:
a1b899f
Parents:
509bca2
Message:

RT_CLOSE is now sent at the pause stage, rather than at the finish stage when you no longer have an fd left to send it with.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_rt.c

    rd5a27e8 r3198df4  
    248248
    249249static int rt_pause_input(libtrace_t *libtrace) {
    250         close(RT_INFO->input_fd);
    251         return 0;
    252 }
    253 
    254 static int rt_fin_input(libtrace_t *libtrace) {
    255250        rt_header_t close_msg;
    256251
     
    265260       
    266261        }
     262
     263        close(RT_INFO->input_fd);
     264        return 0;
     265}
     266
     267static int rt_fin_input(libtrace_t *libtrace) {
    267268        if (RT_INFO->dummy_duck)
    268269                trace_destroy_dead(RT_INFO->dummy_duck);
     
    279280        if (RT_INFO->dummy_linux)
    280281                trace_destroy_dead(RT_INFO->dummy_linux);
    281 
    282         close(RT_INFO->input_fd);
    283282        free(libtrace->format_data);
    284283        return 0;
Note: See TracChangeset for help on using the changeset viewer.