$NetBSD: patch-aa,v 1.4 2001/05/21 12:42:38 kim Exp $ --- src/lock.c.orig Tue Apr 10 23:04:47 2001 +++ src/lock.c Mon May 21 02:25:42 2001 @@ -138,6 +138,13 @@ start = Time(); rcode = callFuncTimeout(remain/1000,-1,func,fd); +#ifdef EWOULDBLOCK + if (rcode == -1 && errno != EWOULDBLOCK) { + /* pretend lock succeeded */ + rcode = 0; + break; + } +#endif elapse1 = (Time() - start) * 1000; /*{ static int n;