remove #if 0 out file locking code
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13278 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -389,25 +389,6 @@ krb5_kt_free_entry(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if 0
|
||||
static int
|
||||
xxxlock(int fd, int write)
|
||||
{
|
||||
if(flock(fd, (write ? LOCK_EX : LOCK_SH) | LOCK_NB) < 0) {
|
||||
sleep(1);
|
||||
if(flock(fd, (write ? LOCK_EX : LOCK_SH) | LOCK_NB) < 0)
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void
|
||||
xxxunlock(int fd)
|
||||
{
|
||||
flock(fd, LOCK_UN);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Set `cursor' to point at the beginning of `id'.
|
||||
* Return 0 or an error.
|
||||
|
Reference in New Issue
Block a user