aboutsummaryrefslogtreecommitdiffstats
path: root/g10/tdbio.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2011-09-28 13:41:58 +0000
committerWerner Koch <[email protected]>2011-09-28 13:41:58 +0000
commited8e267859a00233fee89a6b1b7fb3d74ceced96 (patch)
treee74d7b7af18297021f1e7548899d07badb464a0a /g10/tdbio.c
parentAllow arbitrary timeouts with dotlock. (diff)
downloadgnupg-ed8e267859a00233fee89a6b1b7fb3d74ceced96.tar.gz
gnupg-ed8e267859a00233fee89a6b1b7fb3d74ceced96.zip
Add a flag parameter to dotlock_create.
This allows us to extend this function in the future.
Diffstat (limited to 'g10/tdbio.c')
-rw-r--r--g10/tdbio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/g10/tdbio.c b/g10/tdbio.c
index 968d06b3c..1ab11f2e7 100644
--- a/g10/tdbio.c
+++ b/g10/tdbio.c
@@ -544,7 +544,7 @@ tdbio_set_dbname( const char *new_dbname, int create )
db_name = fname;
#ifdef __riscos__
if( !lockhandle )
- lockhandle = dotlock_create (db_name);
+ lockhandle = dotlock_create (db_name, 0);
if( !lockhandle )
log_fatal( _("can't create lock for `%s'\n"), db_name );
if( dotlock_make (lockhandle, -1) )
@@ -567,7 +567,7 @@ tdbio_set_dbname( const char *new_dbname, int create )
#ifndef __riscos__
if( !lockhandle )
- lockhandle = dotlock_create (db_name);
+ lockhandle = dotlock_create (db_name, 0);
if( !lockhandle )
log_fatal( _("can't create lock for `%s'\n"), db_name );
#endif /* !__riscos__ */
@@ -608,7 +608,7 @@ open_db()
assert( db_fd == -1 );
if (!lockhandle )
- lockhandle = dotlock_create (db_name);
+ lockhandle = dotlock_create (db_name, 0);
if (!lockhandle )
log_fatal( _("can't create lock for `%s'\n"), db_name );
#ifdef __riscos__