From b6514d02ecbeaff68b8f625e07e9c16dda8fddcf Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 14 Sep 2007 11:07:02 +0000 Subject: r25150: don't recursivly call call dump_core() as currently seen in 'make test' localy and in the farm metze (This used to be commit f41efe01b5a22889f5b18916df9a2f924263e7f9) --- source3/lib/fault.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source3/lib/fault.c') diff --git a/source3/lib/fault.c b/source3/lib/fault.c index 3ddb88edc7..6ab1a07900 100644 --- a/source3/lib/fault.c +++ b/source3/lib/fault.c @@ -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. -- cgit