Re: [autotest] vm creation fails (not)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- "Avi Kivity" <avi@xxxxxxxxxx> wrote:

> 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.

I'm not sure I can do that because the process I'm interested in isn't a
child of mine.
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.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux