Ignore:
Timestamp:
06/01/06 14:28:00 (15 years ago)
Author:
Perry Lorier <perry@…>
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:
3b49843
Parents:
e49ec63
Message:

Add better error handling to tools

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracesplit/tracesplit.c

    r853603a rfc0f131  
    105105        output=NULL;
    106106        input=trace_create(argv[optind]);
     107        if (trace_is_err(input)) {
     108                trace_perror(input,"");
     109                return 1;
     110        }
    107111
    108         trace_start(input);
     112        if (trace_start(input)==-1) {
     113                trace_perror(input,"");
     114                return 1;
     115        }
    109116
    110117        while(1) {
Note: See TracChangeset for help on using the changeset viewer.