fcntl always fails to delete lock file, and PID is always -6464

Daichi GOTO daichi at ongs.co.jp
Tue Oct 12 03:21:59 UTC 2010



Sent from my iPad

On Oct 11, 2010, at 5:50 PM, John Baldwin <jhb at freebsd.org> wrote:

> On Tuesday, October 05, 2010 2:39:26 am Daichi GOTO wrote:
>> Next step discussion engaged from this research I guess.
>> 
>> Should we do change FreeBSD's fcntl(2) to return correct l_pid
>> when called with F_SETLK?  Or keep current behavior??
>> I want to hear other developers ideas and suggetions.
> 
> POSIX doesn't say that F_SETLK returns a valid l_pid, so I think FreeBSD's 
> current behavior is fine.

Yes, I agree. POSIX says so.

> -- 
> John Baldwin


More information about the freebsd-fs mailing list