diff options
author | Yuri Pankov <yuri.pankov@nexenta.com> | 2017-05-29 03:56:19 +0300 |
---|---|---|
committer | Gordon Ross <gwr@nexenta.com> | 2017-06-07 11:12:34 -0400 |
commit | 72d3dbb9ab4481606cb93caca98ba3b3a8eb6ce2 (patch) | |
tree | b1e1409d1dc0ac3c433224c0cde7c97d01e98d5c /usr/src/man/man3c/pthread_mutexattr_getrobust.3c | |
parent | cb4d790db8fe85bce9f9647fe4e1bdc274c7af1c (diff) | |
download | illumos-gate-72d3dbb9ab4481606cb93caca98ba3b3a8eb6ce2.tar.gz |
8300 fix man page issues found by mandoc 1.14.1
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Approved by: Gordon Ross <gwr@nexenta.com>
Diffstat (limited to 'usr/src/man/man3c/pthread_mutexattr_getrobust.3c')
-rw-r--r-- | usr/src/man/man3c/pthread_mutexattr_getrobust.3c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/usr/src/man/man3c/pthread_mutexattr_getrobust.3c b/usr/src/man/man3c/pthread_mutexattr_getrobust.3c index cefcc73042..85b2b335c9 100644 --- a/usr/src/man/man3c/pthread_mutexattr_getrobust.3c +++ b/usr/src/man/man3c/pthread_mutexattr_getrobust.3c @@ -46,23 +46,24 @@ include: .It Sy PTHREAD_MUTEX_STALLED The mutex referred to by .Va attr -is a traditional mutex. When a thread holding an intra-process lock or a -process holding an inter-process lock crashes or terminates without -unlocking the mutex, then the lock will be +is a traditional mutex. +When a thread holding an intra-process lock or a process holding an +inter-process lock crashes or terminates without unlocking the mutex, then the +lock will be .Sy stalled . For another thread or process to obtain the lock, something else must unlock it. .It Sy PTHREAD_MUTEX_ROBUST The mutex referred to by .Va attr -is considered a robust mutex. When a process holding an inter-process -lock crashes or terminates without unlocking the mutex, the attempt to -lock it will return +is considered a robust mutex. +When a process holding an inter-process lock crashes or terminates without +unlocking the mutex, the attempt to lock it will return .Er EOWNERDEAD . This allows the new owner the chance to fix the internal state and call .Xr pthread_mutex_consistent 3C -prior to unlocking the lock, allowing normal operation to proceed. Any -crashes while in this state cause the next owner to obtain +prior to unlocking the lock, allowing normal operation to proceed. +Any crashes while in this state cause the next owner to obtain .Er EOWNERDEAD . .El .Sh RETURN VALUES @@ -72,8 +73,8 @@ function will return .Sy 0 and update .Fa robust -with the current value of the robust attribute. Upon successful -completion, the +with the current value of the robust attribute. +Upon successful completion, the .Fn pthread_mutexattr_setrobust function will return .Sy 0 @@ -82,7 +83,8 @@ and update the robust property of the attributes pointed to by to .Va robust . If either function fails, an error code will be returned to indicate the -error. Valid errors are defined below. +error. +Valid errors are defined below. .Sh ERRORS The .Fn pthread_mutexattr_getrobust |