diff options
| author | Werner Koch <[email protected]> | 2011-09-28 13:41:58 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2011-09-28 13:41:58 +0000 |
| commit | ed8e267859a00233fee89a6b1b7fb3d74ceced96 (patch) | |
| tree | e74d7b7af18297021f1e7548899d07badb464a0a /common/t-dotlock.c | |
| parent | Allow arbitrary timeouts with dotlock. (diff) | |
| download | gnupg-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 'common/t-dotlock.c')
| -rw-r--r-- | common/t-dotlock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/t-dotlock.c b/common/t-dotlock.c index a352f6e95..f81b95276 100644 --- a/common/t-dotlock.c +++ b/common/t-dotlock.c @@ -90,7 +90,7 @@ lock_and_unlock (const char *fname) { dotlock_t h; - h = dotlock_create (fname); + h = dotlock_create (fname, 0); if (!h) die ("error creating lock file for `%s': %s", fname, strerror (errno)); inf ("lock created"); @@ -129,7 +129,7 @@ main (int argc, char **argv) sigaction (SIGINT, &nact, NULL); } - dotlock_create (NULL); /* Initialize (optional). */ + dotlock_create (NULL, 0); /* Initialize (optional). */ lock_and_unlock (fname); |
