Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

Commit

Permalink
A few small BSD related fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Feb 8, 2012
1 parent 01e9570 commit ac834d2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion runtest
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
TCL=tclsh8.5
which $TCL
if [ "$?" != "0" ]
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ else
endif

.make-arch:
-(cd ../deps && make $(DEPENDENCY_TARGETS) ARCH="$(ARCH)")
-(cd ../deps && $(MAKE) $(DEPENDENCY_TARGETS) ARCH="$(ARCH)")
-(echo $(ARCH) > .make-arch)

# Clean local objects when allocator changes
Expand Down
1 change: 1 addition & 0 deletions src/ae.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>

#include "ae.h"
#include "zmalloc.h"
Expand Down
16 changes: 8 additions & 8 deletions src/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down Expand Up @@ -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--) {
Expand Down

0 comments on commit ac834d2

Please sign in to comment.