[Bug 272367] openat(..., O_NONBLOCK | O_EXLOCK) may wrongly return EAGAIN
Date: Tue, 04 Jul 2023 23:41:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272367 --- Comment #4 from Alan Somers <asomers@FreeBSD.org> --- (In reply to Konstantin Belousov from comment #2) Your explanation makes sense. But I have a hard time reconciling it with this line from flock(2): If a process holding a lock on a file forks and the child explicitly unlocks the file, the parent will lose its lock. That makes it sound like the lock goes away on first close, not on last one. Or is there a difference between the child closing the file and the child explicitly unlocking the file? -- You are receiving this mail because: You are the assignee for the bug.