Changeset 41816bf for tools/tracesplit
- Timestamp:
- 11/25/06 12:34:34 (16 years ago)
- 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:
- 0a62bba
- Parents:
- 7dd71f0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/tracesplit/tracesplit.c
ra7282fb r41816bf 10 10 #include <string.h> 11 11 #include <assert.h> 12 #include <signal.h> 12 13 13 14 static char *strdupcat(char *str,char *app) … … 38 39 ,argv0); 39 40 exit(1); 41 } 42 43 int done=0; 44 45 void cleanup_signal(int sig) 46 { 47 done=1; 40 48 } 41 49 … … 121 129 } 122 130 123 while(1) { 131 signal(SIGINT,&cleanup_signal); 132 signal(SIGTERM,&cleanup_signal); 133 134 while(!done) { 124 135 125 136 if (trace_read_packet(input,packet)<1) {
Note: See TracChangeset
for help on using the changeset viewer.