NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: PR/48351 CVS commit: src/usr.bin/flock
The following reply was made to PR bin/48351; it has been noted by GNATS.
From: Dennis Ferguson <dennis.c.ferguson%gmail.com@localhost>
To: Christos Zoulas <christos%zoulas.com@localhost>
Cc: gnats-bugs%NetBSD.org@localhost,
gnats-admin%netbsd.org@localhost,
netbsd-bugs%netbsd.org@localhost
Subject: Re: PR/48351 CVS commit: src/usr.bin/flock
Date: Tue, 29 Oct 2013 15:32:32 -0400
On 29 Oct, 2013, at 14:25 , Christos Zoulas <christos%zoulas.com@localhost>
wrote:
> Nope, we need some kernel work I guess:
>
> [2:24pm] 2544>flock -u 0
> Exit 1
> [2:24pm] 2545>flock -s 0
> Exit 1
Ah, maybe it's my fault for not providing a better example. This
seems to work:
$ (
> ./flock -s 0; echo $?
> ./flock -x 0; echo $?
> ./flock -s 0; echo $?
> ./flock -u 0; echo $?
> ) < /tmp/a_file
0
0
0
0
I think the thing being locked might need to be a regular file.
Dennis Ferguson
Home |
Main Index |
Thread Index |
Old Index