mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
about to release 1.4.3rc1
This commit is contained in:
parent
966cd80d88
commit
b121d029b5
38 changed files with 21106 additions and 19313 deletions
|
@ -380,10 +380,10 @@ set_random_seed_file( const char *name )
|
|||
reasonable time to succeed. With FOR_WRITE set to true a Rite lock
|
||||
will be taken. FNAME is used only for diagnostics. Returns 0 on
|
||||
success or -1 on error. */
|
||||
#if LOCK_SEED_FILE
|
||||
static int
|
||||
lock_seed_file (int fd, const char *fname, int for_write)
|
||||
{
|
||||
#if LOCK_SEED_FILE
|
||||
struct flock lck;
|
||||
struct timeval tv;
|
||||
int backoff=0;
|
||||
|
@ -413,9 +413,9 @@ lock_seed_file (int fd, const char *fname, int for_write)
|
|||
if (backoff < 10)
|
||||
backoff++ ;
|
||||
}
|
||||
#endif /*LOCK_SEED_FILE*/
|
||||
return 0;
|
||||
}
|
||||
#endif /*LOCK_SEED_FILE*/
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue