diff options
author | avg <avg@FreeBSD.org> | 2012-12-23 12:56:04 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2012-12-23 12:56:04 +0000 |
commit | 9e0012da52e98f166c4351de0bd020fbd7b4b49d (patch) | |
tree | 247e8965a803f5d4a4beabb2aeae1657935fc5ae /share/man | |
parent | 2fa689448c705010b01e21d6af649719e9c9a2b8 (diff) | |
download | FreeBSD-src-9e0012da52e98f166c4351de0bd020fbd7b4b49d.zip FreeBSD-src-9e0012da52e98f166c4351de0bd020fbd7b4b49d.tar.gz |
lock.9: fix incorrect descriptions of LK_SHARED and LK_DOWNGRADE behavior
Reviewed by: attilio
MFC after: 5 days
X-MFC after: r243900
Diffstat (limited to 'share/man')
-rw-r--r-- | share/man/man9/lock.9 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/share/man/man9/lock.9 b/share/man/man9/lock.9 index bbcf5e8..fd608d4 100644 --- a/share/man/man9/lock.9 +++ b/share/man/man9/lock.9 @@ -148,7 +148,9 @@ Flags indicating what action is to be taken. .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 @@ is not set, the system will .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. |