Changeset 6fc1ae7


Ignore:
Timestamp:
02/09/15 11:39:07 (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:
065cab9
Parents:
1bad1e2
Message:

libtrace_halt should be volatile so it doesn't get optimised out anywhere

Location:
lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace_int.h

    r10f924c r6fc1ae7  
    746746 * immediately
    747747 */
    748 extern int libtrace_halt;
     748extern volatile int libtrace_halt;
    749749
    750750/** Registers a new capture format module.
  • lib/trace.c

    r7fda5c5 r6fc1ae7  
    105105static struct libtrace_format_t *formats_list = NULL;
    106106
    107 int libtrace_halt = 0;
     107volatile int libtrace_halt = 0;
    108108
    109109/* strncpy is not assured to copy the final \0, so we
Note: See TracChangeset for help on using the changeset viewer.