VirtualBox

Ignore:
Timestamp:
Dec 4, 2015 3:22:36 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
104518
Message:

dtrace.c (cmd): Signal handler variables should be volatile, and one windows we need to reinstall the signal handler when it fires. Fixed warning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/cmd/dtrace/dtrace.c

    r53974 r58991  
    156156static int g_quiet;
    157157static int g_flowindent;
     158#ifdef VBOX /* Added volatile to signal handler variables. */
     159static int volatile g_intr;
     160static int volatile g_impatient;
     161static int volatile g_newline;
     162#else
    158163static int g_intr;
    159164static int g_impatient;
    160165static int g_newline;
     166#endif
    161167static int g_total;
    162168static int g_cflags;
     
    12341240        if (g_intr++)
    12351241                g_impatient = 1;
     1242#ifdef _MSC_VER
     1243        /* Reinstall signal handler. Seems MSVCRT is System V style. */
     1244        signal(signo, intr);
     1245#endif
    12361246}
    12371247
     
    12711281
    12721282        g_ofp = stdout;
    1273         g_pname = RTProcShortName();
     1283        g_pname = (char *)RTProcShortName();
    12741284#endif
    12751285
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette