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



On Oct 29, 12:46pm, dennis.c.ferguson%gmail.com@localhost (Dennis Ferguson) 
wrote:
-- Subject: Re: PR/48351 CVS commit: src/usr.bin/flock

| 
| On 29 Oct, 2013, at 12:05 , Christos Zoulas <christos%netbsd.org@localhost> 
wrote:
| > XXX: still flock -s 0 fails with EINVAL, why?
| 
| Does it stop if you do a flock -u 0 first?
| 
| I see code in the kernel to handle upgrading a lock from shared
| to exclusive, but I don't see anything to deal with downgrading
| from exclusive to shared (though I may be missing something).

Nope, we need some kernel work I guess:

[2:24pm] 2544>flock -u 0
Exit 1
[2:24pm] 2545>flock -s 0
Exit 1

christos


Home | Main Index | Thread Index | Old Index