Skip to contentSkip to conversation

New: flock: can return EAGAIN contrary to manpage

Bug 29362 bugzilla-daemon-590EEB7GvNiWaY/[email protected] 1 participant 2 messages Feb 18, 2011 – Aug 16, 2012 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=29362

Summary: flock: can return EAGAIN contrary to manpage
Product: Documentation
Version: unspecified
Kernel Version: n/a
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: low
Priority: P1
Component: man-pages
AssignedTo: documentation_man-pages-ztI5WcYan/[email protected]
ReportedBy: [email protected]
Regression: No

flock(2) manpage does not list EAGAIN as possible return value. As far as I understand, one can assume that flock never returns EAGAIN, which is not true:

strace:
...
flock(3, LOCK_EX|LOCK_NB) = -1 EAGAIN (Resource temporarily unavailable)
...

FWIW, this was on kernel 2.6.37.

Signature · 7 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): bug-29362-11311-3bo0kxnWaOQUvHkbgXJLS5sdmw4N0Rt+2LY78lusg7I@public.gmane.org/

#2 lore raw

[Bug 29362] flock: can return EAGAIN contrary to manpage

https://bugzilla.kernel.org/show_bug.cgi?id=29362

Michael Kerrisk <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|                            |INVALID

--- Comment #1 from Michael Kerrisk <[email protected]> 2012-08-16 06:40:49 --- EAGAIN has the same value as EWOULDBLOCK, which is documented in the man page.
flock() comes from BSD, where the EWOULDBLOCK error is documented.

strace() can't tell the difference between the symbolic names EAGAIN and EWOULDBLOCK because it only knows about error numbers.

The errno(3) man page mentions that EGAIN and EWOULDBLOCK may have the same value.

Signature · 7 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html