summaryrefslogtreecommitdiffstats
path: root/man3/pthread_mutexattr_setrobust.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/pthread_mutexattr_setrobust.3')
-rw-r--r--man3/pthread_mutexattr_setrobust.324
1 files changed, 12 insertions, 12 deletions
diff --git a/man3/pthread_mutexattr_setrobust.3 b/man3/pthread_mutexattr_setrobust.3
index 0e020cb67..67f4d4dcf 100644
--- a/man3/pthread_mutexattr_setrobust.3
+++ b/man3/pthread_mutexattr_setrobust.3
@@ -202,10 +202,10 @@ The following shell session shows what we see when running this program:
$ \fB./a.out\fP
[original owner] Setting lock...
[original owner] Locked. Now exiting without unlocking.
-[main thread] Attempting to lock the robust mutex.
-[main thread] pthread_mutex_lock() returned EOWNERDEAD
-[main thread] Now make the mutex consistent
-[main thread] Mutex is now consistent; unlocking
+[main] Attempting to lock the robust mutex.
+[main] pthread_mutex_lock() returned EOWNERDEAD
+[main] Now make the mutex consistent
+[main] Mutex is now consistent; unlocking
.EE
.in
.SS Program source
@@ -217,7 +217,7 @@ $ \fB./a.out\fP
#include <errno.h>
#define handle_error_en(en, msg) \e
- do { errno = en; perror(msg); exit(EXIT_FAILURE); } while (0)
+ do { errno = en; perror(msg); exit(EXIT_FAILURE); } while (0)
static pthread_mutex_t mtx;
@@ -250,25 +250,25 @@ main(int argc, char *argv[])
/* "original_owner_thread" should have exited by now */
- printf("[main thread] Attempting to lock the robust mutex.\en");
+ printf("[main] Attempting to lock the robust mutex.\en");
s = pthread_mutex_lock(&mtx);
if (s == EOWNERDEAD) {
- printf("[main thread] pthread_mutex_lock() returned EOWNERDEAD\en");
- printf("[main thread] Now make the mutex consistent\en");
+ printf("[main] pthread_mutex_lock() returned EOWNERDEAD\en");
+ printf("[main] Now make the mutex consistent\en");
s = pthread_mutex_consistent(&mtx);
if (s != 0)
handle_error_en(s, "pthread_mutex_consistent");
- printf("[main thread] Mutex is now consistent; unlocking\en");
+ printf("[main] Mutex is now consistent; unlocking\en");
s = pthread_mutex_unlock(&mtx);
if (s != 0)
handle_error_en(s, "pthread_mutex_unlock");
exit(EXIT_SUCCESS);
} else if (s == 0) {
- printf("[main thread] pthread_mutex_lock() unexpectedly succeeded\en");
+ printf("[main] pthread_mutex_lock() unexpectedly succeeded\en");
exit(EXIT_FAILURE);
} else {
- printf("[main thread] pthread_mutex_lock() unexpectedly failed\en");
+ printf("[main] pthread_mutex_lock() unexpectedly failed\en");
handle_error_en(s, "pthread_mutex_lock");
}
}
@@ -283,7 +283,7 @@ main(int argc, char *argv[])
.BR pthread_mutex_lock (3),
.BR pthreads (7)
.SH COLOPHON
-This page is part of release 5.09 of the Linux
+This page is part of release 5.10 of the Linux
.I man-pages
project.
A description of the project,