Produce the watchlog warning log in a way that is safer from a signal handler. Fix a memory leak in the backtrace generation function.

This commit is contained in:
antirez
2012-03-27 15:24:33 +02:00
parent aa96122d96
commit 23c0cdd2ad
3 changed files with 36 additions and 10 deletions

View File

@ -227,6 +227,10 @@ void zmalloc_enable_thread_safeness(void) {
zmalloc_thread_safe = 1;
}
void zlibc_free(void *ptr) {
free(ptr);
}
/* Get the RSS information in an OS-specific way.
*
* WARNING: the function zmalloc_get_rss() is not designed to be fast