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:
Love Hörnquist Åstrand
2004-01-21 10:55:54 +00:00
parent b6dd5d6a87
commit b18ecb3e09

View File

@@ -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.