Changeset 1445 in svn for trunk


Ignore:
Timestamp:
2013-11-07T08:43:22Z (22 months ago)
Author:
Xuefer
Message:

output if segv

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r1435 r1445  
    583583        xc_cacher_disable();
    584584    }
     585
     586    if (0) {
     587    }
     588#define FOREACH_SIG(forsig) \
     589    else if (sig == forsig) \
     590        write(2, XCACHE_STRL("Program received signal " #forsig ", Segmentation fault\n"))
     591
     592#include "util/xc_foreachcoresig.h"
     593#undef FOREACH_SIG
     594
     595    write(2, XCACHE_STRL("If core dump is enabled it can be found at "));
     596    write(2, xc_coredump_dir, strlen(xc_coredump_dir));
     597    write(2, XCACHE_STRL("\n"));
     598
    585599    raise(sig);
    586600}
Note: See TracChangeset for help on using the changeset viewer.