Opened 12 years ago
Closed 12 years ago
#8661 closed bug (fixed)
fcntl(fd, F_GETLK, ...) violates POSIX
Reported by: | pdziepak | Owned by: | pdziepak |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | System/POSIX | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
The standard states that F_GETLK
should check whether given lock would be blocked by another one and return description of the conflicting one (or set l_type
to F_UNLCK
if there is no collision).
Current implementation of F_GETLK performs completely different actions, it "Retrieves the first lock that has been set by the current team". Moreover, if there are no locks (advisory_locking == NULL
) an error is returned instead of l_type
set to F_UNLCK
.
Attachments (1)
Change History (6)
comment:1 by , 12 years ago
patch: | 0 → 1 |
---|
by , 12 years ago
Attachment: | 0001-Fix-8661-fcntl-fd-F_GETLK-.-violates-POSIX.patch added |
---|
comment:2 by , 12 years ago
comment:3 by , 12 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:4 by , 12 years ago
Owner: | changed from | to
---|
Note:
See TracTickets
for help on using tickets.
Could somebody please review the patch?