diff options
author | Werner Koch <wk@gnupg.org> | 2011-09-28 15:41:58 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2011-09-28 15:41:58 +0200 |
commit | ed8e267859a00233fee89a6b1b7fb3d74ceced96 (patch) | |
tree | e74d7b7af18297021f1e7548899d07badb464a0a /sm | |
parent | Allow arbitrary timeouts with dotlock. (diff) | |
download | gnupg2-ed8e267859a00233fee89a6b1b7fb3d74ceced96.tar.xz gnupg2-ed8e267859a00233fee89a6b1b7fb3d74ceced96.zip |
Add a flag parameter to dotlock_create.
This allows us to extend this function in the future.
Diffstat (limited to 'sm')
-rw-r--r-- | sm/gpgsm.c | 2 | ||||
-rw-r--r-- | sm/keydb.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sm/gpgsm.c b/sm/gpgsm.c index 87f94e210..dc9f2e032 100644 --- a/sm/gpgsm.c +++ b/sm/gpgsm.c @@ -928,7 +928,7 @@ main ( int argc, char **argv) gnupg_init_signals (0, emergency_cleanup); - dotlock_create (NULL); /* Register lockfile cleanup. */ + dotlock_create (NULL, 0); /* Register lockfile cleanup. */ opt.session_env = session_env_new (); if (!opt.session_env) diff --git a/sm/keydb.c b/sm/keydb.c index 9d1a6ef01..86301b337 100644 --- a/sm/keydb.c +++ b/sm/keydb.c @@ -214,7 +214,7 @@ keydb_add_resource (const char *url, int force, int secret, int *auto_created) all_resources[used_resources].secret = secret; all_resources[used_resources].lockhandle - = dotlock_create (filename); + = dotlock_create (filename, 0); if (!all_resources[used_resources].lockhandle) log_fatal ( _("can't create lock for `%s'\n"), filename); |