Author: metze Date: 2007-09-14 11:09:50 +0000 (Fri, 14 Sep 2007) New Revision: 25151
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25151 Log: don't recursivly call call dump_core() as currently seen in 'make test' localy and in the farm metze Modified: branches/SAMBA_3_2_0/source/lib/fault.c Changeset: Modified: branches/SAMBA_3_2_0/source/lib/fault.c =================================================================== --- branches/SAMBA_3_2_0/source/lib/fault.c 2007-09-14 11:07:02 UTC (rev 25150) +++ branches/SAMBA_3_2_0/source/lib/fault.c 2007-09-14 11:09:50 UTC (rev 25151) @@ -150,6 +150,14 @@ 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.
