diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-06-30 19:46:28 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:56:50 -0500 |
commit | 1cec0de9273d10847ffb513679f6643a7a4cc648 (patch) | |
tree | e4a0ee47c04140ac1a0a7baacd2fcb51586e763b /source4/lib/util.c | |
parent | adf0d519a546085ee23a59d7284c443dc2321544 (diff) | |
download | samba-1cec0de9273d10847ffb513679f6643a7a4cc648.tar.gz samba-1cec0de9273d10847ffb513679f6643a7a4cc648.tar.bz2 samba-1cec0de9273d10847ffb513679f6643a7a4cc648.zip |
r1308: move smb_panic() to lib/fault.c
merge the backtrace stuff from 3.0
metze
(This used to be commit 4daf1bafc71cc8f13188aeb85d81aa7513d57d95)
Diffstat (limited to 'source4/lib/util.c')
-rw-r--r-- | source4/lib/util.c | 24 |
1 files changed, 0 insertions, 24 deletions
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 |