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

r25150: don't recursivly call call dump_core()

as currently seen in 'make test' localy and in the farm

metze
This commit is contained in:
Stefan Metzmacher 2007-09-14 11:07:02 +00:00 committed by Gerald (Jerry) Carter
parent c3b423c52a
commit f41efe01b5

View File

@ -150,6 +150,14 @@ void dump_core_setup(const char *progname)
void dump_core(void)
{
static bool called;
if (called) {
DEBUG(0, ("dump_core() called recursive\n"));
exit(1);
}
called = true;
/* Note that even if core dumping has been disabled, we still set up
* the core path. This is to handle the case where core dumping is
* turned on in smb.conf and the relevant daemon is not restarted.