A few small BSD related fixes.

This commit is contained in:
antirez
2012-02-08 22:24:59 +01:00
parent 01e95705f8
commit ac834d237a
4 changed files with 11 additions and 10 deletions

@@ -389,6 +389,14 @@ void _redisPanic(char *msg, char *file, int line) {
#endif
}
void bugReportStart(void) {
if (server.bug_report_start == 0) {
redisLog(REDIS_WARNING,
"\n\n=== REDIS BUG REPORT START: Cut & paste starting from here ===");
server.bug_report_start = 1;
}
}
#ifdef HAVE_BACKTRACE
static void *getMcontextEip(ucontext_t *uc) {
#if defined(__FreeBSD__)
@@ -420,14 +428,6 @@ static void *getMcontextEip(ucontext_t *uc) {
#endif
}
void bugReportStart(void) {
if (server.bug_report_start == 0) {
redisLog(REDIS_WARNING,
"\n\n=== REDIS BUG REPORT START: Cut & paste starting from here ===");
server.bug_report_start = 1;
}
}
void logStackContent(void **sp) {
int i;
for (i = 15; i >= 0; i--) {