Re: blocking file lock functions (lockf,flock,fcntl) do not return after timer signal

From: Alex Riesen
Date: Wed Oct 12 2005 - 10:10:51 EST


On 10/12/05, Trond Myklebust <trond.myklebust@xxxxxxxxxx> wrote:
> on den 12.10.2005 Klokka 14:48 (+0200) skreiv Alex Riesen:
> > On 10/12/05, "Dieter Müller (BOI GmbH)" <dieter.mueller@xxxxxx> wrote:
> > > bug description:
> > >
> > > flock, lockf, fcntl do not return even after the signal SIGALRM has
> > > been raised and the signal handler function has been executed
> > > the functions should return with a return value EWOULDBLOCK as described
> > > in the man pages
>
> Works for me on a local filesystem.
>
> Desktop$ ./gnurr gnarg
> locking...
> timeout
> timeout
> timeout
> timeout
> timeout

Doesn't look so. I'd expect "flock: EWOULDBLOCK" and "sleeping" after
the first timeout.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/