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 19:02:49 +0300	[thread overview]
Message-ID: <4A79AD29.40407@redhat.com> (raw)
In-Reply-To: <137563426.1515521249487326121.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>

On 08/05/2009 06:48 PM, Michael Goldish wrote:
>
>    
>> 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.
>>      
>
> I'm not sure I can do that because the process I'm interested in isn't a
> child of mine.
>    

It should be somebody's child and that somebody should wait for it.

> In any case, I'd still need to use the process name to make sure the PID
> belongs to the original process, because PIDs are reused after a while.
>    

waitpid() solves that problem without using the process name.  This 
isn't a new problem, you should use the established solutions.

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


  parent reply	other threads:[~2009-08-05 15:57 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <938753791.1515401249487180985.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>
2009-08-05 15:48 ` [autotest] vm creation fails (not) Michael Goldish
2009-08-05 15:58   ` Gerd Hoffmann
2009-08-05 16:02   ` 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] <1912575528.1512971249485400261.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>
2009-08-05 15:21 ` Michael Goldish
     [not found] <657495968.1491511249467149457.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>
2009-08-05 10:16 ` 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
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=4A79AD29.40407@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.