CVS update: samba/source/lib

Gerald (Jerry) Carter jerry at samba.org
Thu Feb 12 14:32:43 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andrew Bartlett wrote:

| This scares me.  In a signal handler, we are going to open
| a tdb, and complete various manipultations of our
| core databases?
|
| I realise we need a way to reset the process count, but
| this seems like any easy way to get all sorts of mess in
| our tdbs.
|
| Can we safely manipulate a tdb in this case, or am I
| missing something?
|
| I would prefer a scheme were we 'validate' that
| number, against currently alive pids and their records in
| the connections.tdb.  (But I realise that has race problems
| and other complexity).

I'm open to other solutions.  It works fine under my tests
for tdb corruption but there are a lot possible location for
of smb_panic()'s.  The decrement_smbd_count is only called
from smbd (hence the awkward linking difficulties).

But until a better solution comes along this is what we have.






cheers, jerry
- ----------------------------------------------------------------------
Hewlett-Packard            ------------------------- http://www.hp.com
SAMBA Team                 ---------------------- http://www.samba.org
GnuPG Key                  ---- http://www.plainjoe.org/gpg_public.asc
"If we're adding to the noise, turn off this song" --Switchfoot (2003)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAK46LIR7qMdg1EfYRAsg9AKCprq1P8XGBy4iBjSrVIIY/KFvpjQCeMpMp
5UYiBDDELbJBF0vSS/l4tH4=
=JQjs
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list