Date: Thu, 7 Aug 1997 05:30:02 -0700 (PDT) From: David Greenman <dg@root.com> To: freebsd-bugs Subject: Re: kern/4243: file locking doesn't work for pipe Message-ID: <199708071230.FAA05182@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/4243; it has been noted by GNATS.
From: David Greenman <dg@root.com>
To: tetsuya@secom-sis.co.jp
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/4243: file locking doesn't work for pipe
Date: Thu, 07 Aug 1997 05:22:17 -0700
>In flock() in /sys/kern/kern_descrip.c, the following statement:
>
> f (fp->f_type != DTYPE_VNODE)
> return (EOPNOTSUPP);
>
>rejects the file descriptor if fp->f_type == DTYPE_PIPE.
>F_SETLK and F_GETLK of fcntl() have also the similar statements.
>
>"Program rewriting map" (RewriteMap mapname prg:filename) of
>the URL rewriting module (mod_rewrite) of the Apache HTTP server
>uses file locking for pipe, so FreeBSD users cannot use the fine
>feature of "program rewriting map".
Hmmm. Maybe I'm missing something obvious, but I can't think of a reason
why one would want to do file locking on a pipe (which is not a shared
resource). This sounds like a bug in Apache to me...
-DG
David Greenman
Core-team/Principal Architect, The FreeBSD Project
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708071230.FAA05182>
