All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gonglei <arei.gonglei@huawei.com>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: "qemu-trivial@nongnu.org" <qemu-trivial@nongnu.org>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	Markus Armbruster <armbru@redhat.com>
Subject: Re: [Qemu-trivial] [PATCH 1/4] os-posix: use global daemon_pipe instead of cryptic fds[1]
Date: Fri, 31 Oct 2014 12:57:11 +0800	[thread overview]
Message-ID: <545316A7.2010601@huawei.com> (raw)
In-Reply-To: <6b6f5fbff3574bffafe4204d2153258fc4440120.1414681502.git.mjt@msgid.tls.msk.ru>

On 2014/10/30 23:07, Michael Tokarev wrote:

> When asked to -daemonize, we fork a child and setup a pipe between
> it and parent to pass exit status.  os-posix.c used global fds[2]
> array for that, but actually only the writing side of the pipe is
> needed to be global, and this name is really too generic.  Use
> just one interger for the writing side of the pipe, and name it
> daemon_pipe to be more understandable than cryptic fds[1].
> 
> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
> ---
>  os-posix.c |   10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)

Reviewed-by: Gonglei <arei.gonglei@huawei.com>

Best regards,
-Gonglei



WARNING: multiple messages have this Message-ID (diff)
From: Gonglei <arei.gonglei@huawei.com>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: "qemu-trivial@nongnu.org" <qemu-trivial@nongnu.org>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	Markus Armbruster <armbru@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 1/4] os-posix: use global daemon_pipe instead of cryptic fds[1]
Date: Fri, 31 Oct 2014 12:57:11 +0800	[thread overview]
Message-ID: <545316A7.2010601@huawei.com> (raw)
In-Reply-To: <6b6f5fbff3574bffafe4204d2153258fc4440120.1414681502.git.mjt@msgid.tls.msk.ru>

On 2014/10/30 23:07, Michael Tokarev wrote:

> When asked to -daemonize, we fork a child and setup a pipe between
> it and parent to pass exit status.  os-posix.c used global fds[2]
> array for that, but actually only the writing side of the pipe is
> needed to be global, and this name is really too generic.  Use
> just one interger for the writing side of the pipe, and name it
> daemon_pipe to be more understandable than cryptic fds[1].
> 
> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
> ---
>  os-posix.c |   10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)

Reviewed-by: Gonglei <arei.gonglei@huawei.com>

Best regards,
-Gonglei

  reply	other threads:[~2014-10-31 15:17 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-30 15:07 [Qemu-trivial] [PATCH 0/4] cleanup -daemonize and pidfile creation a bit Michael Tokarev
2014-10-30 15:07 ` [Qemu-devel] " Michael Tokarev
2014-10-30 15:07 ` [Qemu-trivial] [PATCH 1/4] os-posix: use global daemon_pipe instead of cryptic fds[1] Michael Tokarev
2014-10-30 15:07   ` [Qemu-devel] " Michael Tokarev
2014-10-31  4:57   ` Gonglei [this message]
2014-10-31  4:57     ` Gonglei
2014-10-30 15:07 ` [Qemu-trivial] [PATCH 2/4] os-posix: replace goto again with a proper loop Michael Tokarev
2014-10-30 15:07   ` [Qemu-devel] " Michael Tokarev
2014-10-31  4:58   ` [Qemu-trivial] " Gonglei
2014-10-31  4:58     ` [Qemu-devel] " Gonglei
2014-10-30 15:07 ` [Qemu-trivial] [PATCH 3/4] pidfile: stop making pidfile error a special case Michael Tokarev
2014-10-30 15:07   ` [Qemu-devel] " Michael Tokarev
2014-10-31  5:00   ` [Qemu-trivial] " Gonglei
2014-10-31  5:00     ` [Qemu-devel] " Gonglei
2014-10-31  7:16     ` [Qemu-trivial] " Michael Tokarev
2014-10-31  7:16       ` [Qemu-devel] " Michael Tokarev
2014-10-31  7:33       ` [Qemu-trivial] " Gonglei
2014-10-31  7:33         ` [Qemu-devel] " Gonglei
2014-10-31  7:41         ` [Qemu-trivial] " Michael Tokarev
2014-10-31  7:41           ` [Qemu-devel] " Michael Tokarev
2014-10-31  7:58           ` [Qemu-trivial] " Gonglei
2014-10-31  7:58             ` [Qemu-devel] " Gonglei
2014-10-31  8:02             ` [Qemu-trivial] " Michael Tokarev
2014-10-31  8:02               ` [Qemu-devel] " Michael Tokarev
2014-10-31  8:10               ` [Qemu-trivial] " Gonglei
2014-10-31  8:10                 ` [Qemu-devel] " Gonglei
2014-10-30 15:07 ` [Qemu-trivial] [PATCH 4/4] os-posix: reorder parent notification for -daemonize Michael Tokarev
2014-10-30 15:07   ` [Qemu-devel] " Michael Tokarev
2014-10-31  5:02   ` [Qemu-trivial] " Gonglei
2014-10-31  5:02     ` [Qemu-devel] " Gonglei

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=545316A7.2010601@huawei.com \
    --to=arei.gonglei@huawei.com \
    --cc=armbru@redhat.com \
    --cc=mjt@tls.msk.ru \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.