summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-05-04 09:32:21 +0000
committerAndrew Tridgell <tridge@samba.org>2000-05-04 09:32:21 +0000
commitf74ea2b78b2aaa4621936c87487f2e9c2072144f (patch)
treef15bd24dc7419e218ba5d59522339a86c225a972 /source3/utils
parent0236a14baccc6c8361ab5d00e8d2a71f8f0e9343 (diff)
downloadsamba-f74ea2b78b2aaa4621936c87487f2e9c2072144f.tar.gz
samba-f74ea2b78b2aaa4621936c87487f2e9c2072144f.tar.bz2
samba-f74ea2b78b2aaa4621936c87487f2e9c2072144f.zip
parameterize the lock timeout
(This used to be commit 98ad4095ccc8d0349d05e6e9223eaad057029626)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/locktest.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/utils/locktest.c b/source3/utils/locktest.c
index d52d023f25..8738116a04 100644
--- a/source3/utils/locktest.c
+++ b/source3/utils/locktest.c
@@ -40,6 +40,7 @@ static BOOL analyze;
#define RANGE_MULTIPLE 32
#define NCONNECTIONS 2
#define NFILES 2
+#define LOCK_TIMEOUT 0
struct record {
char r1, r2;
@@ -218,10 +219,10 @@ static BOOL test_one(struct cli_state *cli[2][2],
/* set a lock */
ret1 = cli_lock(cli[0][conn],
fnum[0][conn][f],
- start, len, 0, op);
+ start, len, LOCK_TIMEOUT, op);
ret2 = cli_lock(cli[1][conn],
fnum[1][conn][f],
- start, len, 0, op);
+ start, len, LOCK_TIMEOUT, op);
if (showall || ret1 != ret2) {
printf("lock conn=%d f=%d range=%d:%d op=%s -> %d:%d\n",
conn, f, start, len, op==READ_LOCK?"READ_LOCK":"WRITE_LOCK",