From c8297073dbaf19237891fd97d9e62dc00ad4e1f0 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 22 Mar 2011 14:05:23 +1100 Subject: s3-fault: removed the cont_fn from fault_setup() cont_fn() was supposed to be a way to continue after a seg fault. It could never be called however, as smb_panic() from fault_report() could never return, as dump_core() never returns at the end of smb_panic() Autobuild-User: Andrew Tridgell Autobuild-Date: Tue Mar 22 05:07:58 CET 2011 on sn-devel-104 --- source3/nmbd/nmbd.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'source3/nmbd/nmbd.c') diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c index a5727ce14f..1735c90576 100644 --- a/source3/nmbd/nmbd.c +++ b/source3/nmbd/nmbd.c @@ -160,15 +160,6 @@ static void nmbd_terminate(struct messaging_context *msg, terminate(); } -/**************************************************************************** ** - Possibly continue after a fault. - **************************************************************************** */ - -static void fault_continue(void) -{ - dump_core(); -} - /**************************************************************************** ** Expire old names from the namelist and server list. **************************************************************************** */ @@ -820,7 +811,7 @@ static bool open_sockets(bool isdaemon, int port) SAFE_FREE(lfile); } - fault_setup((void (*)(void *))fault_continue ); + fault_setup(); dump_core_setup("nmbd"); /* POSIX demands that signals are inherited. If the invoking process has -- cgit