X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fflock.c;h=cae9fb1fca416de8494db0f8329216d227a9a853;hb=f7a3769dede0071696bdcc13ae2ee1efe6d52d96;hp=e49434e0a75f9c5d71d03e309fe38e990a16d6aa;hpb=c7e31a7e62b9328d0753a4da4c46493bedec20e3;p=idzebra-moved-to-github.git diff --git a/util/flock.c b/util/flock.c index e49434e..cae9fb1 100644 --- a/util/flock.c +++ b/util/flock.c @@ -1,4 +1,4 @@ -/* $Id: flock.c,v 1.5 2006-03-25 10:06:55 adam Exp $ +/* $Id: flock.c,v 1.7 2006-05-10 08:13:46 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -95,7 +95,8 @@ ZebraLockHandle zebra_lock_create (const char *dir, const char *name) if (h->fd == -1) { xfree (h); - h = 0; + yaz_log(YLOG_WARN | YLOG_ERRNO, "zebra_lock_create fail fname=%s", fname); + return 0; } h->fname = fname; yaz_log(log_level, "zebra_lock_create fd=%d p=%p fname=%s", h->fd, h, h->fname); @@ -162,3 +163,11 @@ int zebra_unlock (ZebraLockHandle h) #endif } +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +