summaryrefslogtreecommitdiff
path: root/source3/lib/tdb/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-11-06 21:47:57 -0800
committerJeremy Allison <jra@samba.org>2007-11-06 21:47:57 -0800
commitd8f3c9d0786ff637241d2a9409e1c7c253715ba5 (patch)
tree7fe843ce0e72d348e6114af9626d41c29419c1c0 /source3/lib/tdb/include
parent7498e1b8c09abef2db0658c6bfd6d42891c9690d (diff)
downloadsamba-d8f3c9d0786ff637241d2a9409e1c7c253715ba5.tar.gz
samba-d8f3c9d0786ff637241d2a9409e1c7c253715ba5.tar.bz2
samba-d8f3c9d0786ff637241d2a9409e1c7c253715ba5.zip
Fix bug where tdb lock call interrupted with
an alarm sig would not terminate and could lead to runaway smbd processes. Thanks to Dave Daugherty @ Centrify for pointing this out to us. Jeremy. (This used to be commit ef8da1698371c95495add53df81a978df709c88d)
Diffstat (limited to 'source3/lib/tdb/include')
-rw-r--r--source3/lib/tdb/include/tdb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/tdb/include/tdb.h b/source3/lib/tdb/include/tdb.h
index a75df2d7d5..21410e840b 100644
--- a/source3/lib/tdb/include/tdb.h
+++ b/source3/lib/tdb/include/tdb.h
@@ -138,6 +138,8 @@ int tdb_chainunlock(struct tdb_context *tdb, TDB_DATA key);
int tdb_chainlock_read(struct tdb_context *tdb, TDB_DATA key);
int tdb_chainunlock_read(struct tdb_context *tdb, TDB_DATA key);
+void tdb_setalarm_sigptr(struct tdb_context *tdb, volatile sig_atomic_t *sigptr);
+
/* Debug functions. Not used in production. */
void tdb_dump_all(struct tdb_context *tdb);
int tdb_printfreelist(struct tdb_context *tdb);