1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

r645: Patch from kawasa_r@itg.hitachi.co.jp to correctly enable core dumps.

Jeremy.
This commit is contained in:
Jeremy Allison
2004-05-11 01:05:59 +00:00
committed by Gerald (Jerry) Carter
parent 1f4db0b847
commit ea41d69427
2 changed files with 7 additions and 0 deletions

View File

@ -1440,6 +1440,9 @@ void smb_panic2(const char *why, BOOL decrement_pid_count )
#endif
dbgflush();
#ifdef SIGABRT
CatchSignal(SIGABRT,SIGNAL_CAST SIG_DFL);
#endif
abort();
}

View File

@ -545,6 +545,10 @@ static BOOL dump_core(void)
DEBUG(0,("Dumping core in %s\n", dname));
/* Ensure we don't have a signal handler for abort. */
#ifdef SIGABRT
CatchSignal(SIGABRT,SIGNAL_CAST SIG_DFL);
#endif
abort();
return(True);
}