From 1cec0de9273d10847ffb513679f6643a7a4cc648 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 30 Jun 2004 19:46:28 +0000 Subject: r1308: move smb_panic() to lib/fault.c merge the backtrace stuff from 3.0 metze (This used to be commit 4daf1bafc71cc8f13188aeb85d81aa7513d57d95) --- source4/lib/util.c | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'source4/lib/util.c') diff --git a/source4/lib/util.c b/source4/lib/util.c index ee637aeaad..3b23543bfc 100644 --- a/source4/lib/util.c +++ b/source4/lib/util.c @@ -562,30 +562,6 @@ gid_t nametogid(const char *name) return (gid_t)-1; } -/******************************************************************* - Something really nasty happened - panic ! -********************************************************************/ - -void smb_panic(const char *why) -{ - const char *cmd = lp_panic_action(); - int result; - - if (cmd && *cmd) { - DEBUG(0, ("smb_panic(): calling panic action [%s]\n", cmd)); - result = system(cmd); - - if (result == -1) - DEBUG(0, ("smb_panic(): fork failed in panic action: %s\n", - strerror(errno))); - else - DEBUG(0, ("smb_panic(): action returned status %d\n", - WEXITSTATUS(result))); - } - DEBUG(0,("PANIC: %s\n", why)); - abort(); -} - /**************************************************************************** Simple routine to do POSIX file locking. Cruft in NFS and 64->32 bit mapping is dealt with in posix.c -- cgit