[Midnightbsd-cvs] src [8648] trunk/share/man/man9/lock.9: lock.9: fix incorrect descriptions.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Sep 25 14:22:50 EDT 2016
Revision: 8648
http://svnweb.midnightbsd.org/src/?rev=8648
Author: laffer1
Date: 2016-09-25 14:22:49 -0400 (Sun, 25 Sep 2016)
Log Message:
-----------
lock.9: fix incorrect descriptions.
Modified Paths:
--------------
trunk/share/man/man9/lock.9
Modified: trunk/share/man/man9/lock.9
===================================================================
--- trunk/share/man/man9/lock.9 2016-09-25 18:22:11 UTC (rev 8647)
+++ trunk/share/man/man9/lock.9 2016-09-25 18:22:49 UTC (rev 8648)
@@ -148,7 +148,9 @@
.Bl -tag -width ".Dv LK_CANRECURSE"
.It Dv LK_SHARED
Acquire a shared lock.
-If an exclusive lock is currently held, it will be downgraded.
+If an exclusive lock is currently held,
+.Dv EDEADLK
+will be returned.
.It Dv LK_EXCLUSIVE
Acquire an exclusive lock.
If an exclusive lock is already held, and
@@ -158,7 +160,8 @@
.It Dv LK_DOWNGRADE
Downgrade exclusive lock to a shared lock.
Downgrading a shared lock is not permitted.
-If an exclusive lock has been recursed, all references will be downgraded.
+If an exclusive lock has been recursed, the system will
+.Xr panic 9 .
.It Dv LK_UPGRADE
Upgrade a shared lock to an exclusive lock.
If this call fails, the shared lock is lost.
More information about the Midnightbsd-cvs
mailing list