Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
ac834d23
Commit
ac834d23
authored
Feb 08, 2012
by
antirez
Browse files
A few small BSD related fixes.
parent
01e95705
Changes
4
Hide whitespace changes
Inline
Side-by-side
runtest
View file @
ac834d23
#!/bin/
ba
sh
#!/bin/sh
TCL
=
tclsh8.5
which
$TCL
if
[
"
$?
"
!=
"0"
]
...
...
src/Makefile
View file @
ac834d23
...
...
@@ -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
...
...
src/ae.c
View file @
ac834d23
...
...
@@ -35,6 +35,7 @@
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include "ae.h"
#include "zmalloc.h"
...
...
src/debug.c
View file @
ac834d23
...
...
@@ -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
--
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment