merged fix from RC_0_16

This commit is contained in:
Arvid Norberg
2012-06-05 05:55:40 +00:00
parent 2be5513be7
commit 42a5185f24
3 changed files with 14 additions and 1 deletions

View File

@@ -45,7 +45,14 @@ extern bool tests_failure;
void sig_handler(int sig)
{
char stack_text[10000];
#if defined TORRENT_DEBUG || TORRENT_RELEASE_ASSERTS
print_backtrace(stack_text, sizeof(stack_text), 30);
#elif defined __FUNCTION__
strcat(stack_text, __FUNCTION__);
#else
stack_text[0] = 0;
#endif
char const* sig_name = 0;
switch (sig)
{