diff options
author | Gerald Carter <jerry@samba.org> | 2004-02-12 05:59:03 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2004-02-12 05:59:03 +0000 |
commit | 30d707b8ae4c53140e0215090f7a3c8936ab2b47 (patch) | |
tree | 33884a5c06762f63e28e4f39ff5aaba03cbcbc1e /source3/lib/util.c | |
parent | ed1862b3b21d1cbe4a013838bf5c581c600657c2 (diff) | |
download | samba-30d707b8ae4c53140e0215090f7a3c8936ab2b47.tar.gz samba-30d707b8ae4c53140e0215090f7a3c8936ab2b47.tar.bz2 samba-30d707b8ae4c53140e0215090f7a3c8936ab2b47.zip |
tdbsam & smb_panic merge from 3.0 (initial tests are ok but I'll setup a HEAD PDC tomorrow)
(This used to be commit c57b24ee49aee0f0687742da7f8d741c62f6effe)
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r-- | source3/lib/util.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index e9ab72b2bf..61dbc2cb2a 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1341,6 +1341,14 @@ gid_t nametogid(const char *name) } /******************************************************************* + legacy wrapper for smb_panic2() +********************************************************************/ +void smb_panic( const char *why ) +{ + smb_panic2( why, True ); +} + +/******************************************************************* Something really nasty happened - panic ! ********************************************************************/ @@ -1348,7 +1356,7 @@ gid_t nametogid(const char *name) #include <libexc.h> #endif -void smb_panic(const char *why) +void smb_panic2(const char *why, BOOL decrement_pid_count ) { char *cmd; int result; @@ -1371,6 +1379,10 @@ void smb_panic(const char *why) } #endif + /* only smbd needs to decrement the smbd counter in connections.tdb */ + if ( decrement_pid_count ) + decrement_smbd_process_count(); + cmd = lp_panic_action(); if (cmd && *cmd) { DEBUG(0, ("smb_panic(): calling panic action [%s]\n", cmd)); |