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:
committed by
Gerald (Jerry) Carter
parent
1f4db0b847
commit
ea41d69427
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user