From: Paolo Bonzini <pbonzini@redhat.com>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: Kevin Wolf <kwolf@redhat.com>,
Stefan Hajnoczi <stefanha@gmail.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] do not chdir(/) in qemu-nbd
Date: Fri, 13 Jan 2012 14:41:24 +0100 [thread overview]
Message-ID: <4F103484.60705@redhat.com> (raw)
In-Reply-To: <4F1027E7.3080808@msgid.tls.msk.ru>
On 01/13/2012 01:47 PM, Michael Tokarev wrote:
> But instead of adding a chdir later, I'll try to rearrange code a bit
> to do all init in the parent instead.
That's not possible, because when you fork you lose all threads except
the main thread. That's why the daemon() was moved very early. Your
patch is okay if you also add a chdir("/") later on.
Paolo
prev parent reply other threads:[~2012-01-13 13:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-13 9:04 [Qemu-devel] [PATCH] do not chdir(/) in qemu-nbd Michael Tokarev
2012-01-13 11:57 ` Stefan Hajnoczi
2012-01-13 12:47 ` Michael Tokarev
2012-01-13 13:01 ` Daniel P. Berrange
2012-01-13 13:41 ` Paolo Bonzini [this message]
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=4F103484.60705@redhat.com \
--to=pbonzini@redhat.com \
--cc=kwolf@redhat.com \
--cc=mjt@tls.msk.ru \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).