From: Gerd Hoffmann <kraxel@redhat.com>
To: Michael Goldish <mgoldish@redhat.com>
Cc: KVM list <kvm@vger.kernel.org>
Subject: Re: [autotest] vm creation fails (not)
Date: Wed, 05 Aug 2009 16:52:29 +0200 [thread overview]
Message-ID: <4A799CAD.1000703@redhat.com> (raw)
In-Reply-To: <186914453.1505591249481143448.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>
On 08/05/09 16:05, Michael Goldish wrote:
> Thanks, I managed to reproduce it and I'll send a patch to fix it soon.
> The reason for autotest thinking qemu wasn't alive was that apparently it
> takes time for /proc/$PID/cmdline to reflect the real command used to
> start the process, and I wrongly assumed it was instantaneous.
There is no "command line used to start the process" in unix.
A new process is created using fork().
An process can replace itself with a new executable using execve().
Usual way to start some application in unix is this:
(1) fork()
(2) prepare environment (i/o redirection for example)
(3) execve()
(2)+(3) happen in the new child process created by (1).
/proc/$pid/cmdline will reflect that of course. It will show the qemu
command line once execve(qemu) syscall finished.
HTH,
Gerd
next prev parent reply other threads:[~2009-08-05 14:52 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <657495968.1491511249467149457.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>
2009-08-05 10:16 ` [autotest] vm creation fails (not) Michael Goldish
2009-08-05 12:53 ` Gerd Hoffmann
2009-08-05 13:12 ` Michael Goldish
2009-08-05 13:21 ` Gerd Hoffmann
2009-08-05 14:05 ` Michael Goldish
2009-08-05 14:52 ` Gerd Hoffmann [this message]
2009-08-05 15:43 ` Avi Kivity
[not found] <798406659.1555201249555283903.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>
2009-08-06 10:43 ` Michael Goldish
2009-08-06 11:33 ` Avi Kivity
[not found] <87671503.1527311249497775045.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>
2009-08-05 18:47 ` Michael Goldish
2009-08-06 10:23 ` Avi Kivity
[not found] <938753791.1515401249487180985.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>
2009-08-05 15:48 ` Michael Goldish
2009-08-05 15:58 ` Gerd Hoffmann
2009-08-05 16:02 ` Avi Kivity
[not found] <1912575528.1512971249485400261.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>
2009-08-05 15:21 ` Michael Goldish
2009-08-05 9:45 Gerd Hoffmann
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=4A799CAD.1000703@redhat.com \
--to=kraxel@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mgoldish@redhat.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).