public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: Yubin Ruan <ablacktshirt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: "Michael Kerrisk (man-opages)"
	<mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	libc-alpha-9JcytcrH/bA+uJoB2kUjGw@public.gmane.org
Subject: Re: [PATCTH 0/2] pthread_mutexattr_setrobust() and pthread_mutex_consistent()
Date: Fri, 15 Sep 2017 17:45:00 +0800	[thread overview]
Message-ID: <20170915094414.GA18043@HP.internal.baidu.com> (raw)
In-Reply-To: <1159fa2e-006e-d3dd-7d1b-0e055cad42b5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

On Wed, Sep 13, 2017 at 05:00:11PM +0200, Michael Kerrisk (man-opages) wrote:
> Hi Yubin
> 
> >Hi Michael,
> >
> >Sorry that it took so long.
> >
> >Following is the renew patch. I have corrected several formatting issues (i.e.,
> >\n , - , but I can't find anything wrong with ' ) and some typos. The only
> >issue I cannot solve is that the new `pthread_mutex_consistent(3)` page is too
> >short that it shows at the very bottom... please help with this.
> >
> >Also, please find attached three verification snippets.
> 
> I've done some heavy editing, and added quite a few pieces to these pages,
> and pushed the results to Git. Go take a look and let me know
> of anything you think needs fixing. Thanks for these pages!

Good job. No objection, except a minor change and some code formatting change.
See the diff below.

Yubin

diff --git a/man3/pthread_mutexattr_setrobust.3 b/man3/pthread_mutexattr_setrobust.3
index e9e8e76..66b4bed 100644
--- a/man3/pthread_mutexattr_setrobust.3
+++ b/man3/pthread_mutexattr_setrobust.3
@@ -86,7 +86,7 @@ on the mutex will block indefinitely.
 .TP
 .B PTHREAD_MUTEX_ROBUST
 If a mutex is initialized with the
-.BR PTHREAD_MUTEX_ROBUST ,
+.BR PTHREAD_MUTEX_ROBUST
 attribute and its owner dies without unlocking it,
 any future attempts to call
 .BR pthread_mutex_lock (3)
@@ -255,22 +255,21 @@ main(int argc, char *argv[])
     s = pthread_mutex_lock(&mtx);
     if (s == EOWNERDEAD) {
         printf("[main thread] pthread_mutex_lock() returned EOWNERDEAD\\n");
-	printf("[main thread] Now make the mutex consistent\\n");
+        printf("[main thread] Now make the mutex consistent\\n");
         s = pthread_mutex_consistent(&mtx);
         if (s != 0)
-	    handle_error_en(s, "pthread_mutex_consistent");
-	printf("[main thread] Mutex is now consistent; unlocking\\n");
+            handle_error_en(s, "pthread_mutex_consistent");
+        printf("[main thread] Mutex is now consistent; unlocking\\n");
         s = pthread_mutex_unlock(&mtx);
         if (s != 0)
-	    handle_error_en(s, "pthread_mutex_unlock");

  parent reply	other threads:[~2017-09-15  9:45 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-20  9:42 [PATCTH 0/2] pthread_mutexattr_setrobust() and pthread_mutex_consistent() Yubin Ruan
     [not found] ` <CAJYFCiMZN09HaHpvKgxz3mqzmcaXAWmkz=BmgOW9WVdRKOhDsg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-08-21  2:24   ` Yubin Ruan
     [not found]     ` <CAJYFCiPP54qAKdBswWuu-1Ms60KLoY7X=k5Lva5pXSYWFaks3Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-08-21  2:30       ` Yubin Ruan
2017-08-22  0:33   ` Michael Kerrisk (man-pages)
     [not found]     ` <36ab9ec0-b496-c007-c12f-065fd618e7fd-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-08-22  2:19       ` Yubin Ruan
     [not found]         ` <CAJYFCiPM6Hy1cPF2mUBu5bVqxNX+5kvKnJZLhYzMMwuMiHCKeg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-08-26 21:05           ` Yubin Ruan
2017-09-11  1:50             ` Yubin Ruan
     [not found]               ` <CAJYFCiN-g+GjD8StCLue60i6pOw7jZnRGn2=2znPFkFw_FDyqQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-09-11 20:34                 ` Michael Kerrisk (man-pages)
     [not found]             ` <20170826210528.GA32472-BUpDV9vzqx74NUO8LpiZZi+1pv2Z1Xu3@public.gmane.org>
2017-09-12 12:41               ` Michael Kerrisk (man-pages)
2017-09-13  8:34                 ` Yubin Ruan
     [not found]                   ` <20170913083446.GA16265-BUpDV9vzqx74NUO8LpiZZi+1pv2Z1Xu3@public.gmane.org>
2017-09-13  4:09                     ` Yubin Ruan
2017-09-13 12:28                     ` Michael Kerrisk (man-pages)
     [not found]                       ` <CAKgNAkh4iAkz8oL70S3dzztF_oZy+fXohS4OZ2nyySAaAMGX3w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-09-15  8:29                         ` Yubin Ruan
2017-09-13 15:00               ` Michael Kerrisk (man-opages)
     [not found]                 ` <1159fa2e-006e-d3dd-7d1b-0e055cad42b5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-09-15  9:45                   ` Yubin Ruan [this message]
     [not found]                     ` <20170915094414.GA18043-BUpDV9vzqx74NUO8LpiZZi+1pv2Z1Xu3@public.gmane.org>
2017-09-15  7:53                       ` Michael Kerrisk (man-pages)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170915094414.GA18043@HP.internal.baidu.com \
    --to=ablacktshirt-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=libc-alpha-9JcytcrH/bA+uJoB2kUjGw@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox