All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Michael Goldish <mgoldish@redhat.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>, KVM list <kvm@vger.kernel.org>
Subject: Re: [autotest] vm creation fails (not)
Date: Wed, 05 Aug 2009 18:43:33 +0300	[thread overview]
Message-ID: <4A79A8A5.20004@redhat.com> (raw)
In-Reply-To: <186914453.1505591249481143448.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>

On 08/05/2009 05:05 PM, 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.
>    

You should use wait() to find out if the process is alive, not tricks 
with the PID and process name, which are racy as you found out.

-- 
error compiling committee.c: too many arguments to function


  parent reply	other threads:[~2009-08-05 15:38 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
2009-08-05 15:43           ` Avi Kivity [this message]
     [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=4A79A8A5.20004@redhat.com \
    --to=avi@redhat.com \
    --cc=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 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.