summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-03-24 18:14:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:52 -0500
commiteca13022ef78237f915c8fec1ecbe676b1c86ae3 (patch)
tree8b317d905b3c1496277f4ada32fbcf1251cffebb /source3/lib
parent643157ff5ac13b15a4b501b00ffdca5fced0e7e9 (diff)
downloadsamba-eca13022ef78237f915c8fec1ecbe676b1c86ae3.tar.gz
samba-eca13022ef78237f915c8fec1ecbe676b1c86ae3.tar.bz2
samba-eca13022ef78237f915c8fec1ecbe676b1c86ae3.zip
r21960: Fix bugs 4463,4464,4465,4466. Thanks Jason :-)
(This used to be commit a2e27c443101a59ef3429a55e049af3ebd5ec1f2)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_tdb.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/source3/lib/util_tdb.c b/source3/lib/util_tdb.c
index b559f589dc..9e911a653c 100644
--- a/source3/lib/util_tdb.c
+++ b/source3/lib/util_tdb.c
@@ -25,18 +25,6 @@
#undef calloc
#undef strdup
-/***************************************************************
- Allow a caller to set a "alarm" flag that tdb can check to abort
- a blocking lock on SIGALRM.
-***************************************************************/
-
-static sig_atomic_t *palarm_fired;
-
-static void tdb_set_lock_alarm(sig_atomic_t *palarm)
-{
- palarm_fired = palarm;
-}
-
/* these are little tdb utility functions that are meant to make
dealing with a tdb database a little less cumbersome in Samba */
@@ -77,7 +65,6 @@ static int tdb_chainlock_with_timeout_internal( TDB_CONTEXT *tdb, TDB_DATA key,
/* Allow tdb_chainlock to be interrupted by an alarm. */
int ret;
gotalarm = 0;
- tdb_set_lock_alarm(CONST_DISCARD(sig_atomic_t *, &gotalarm));
if (timeout) {
CatchSignal(SIGALRM, SIGNAL_CAST gotalarm_sig);