WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] time.usleep(500) in xend

To: "Paul Larson" <plars@xxxxxxxxxxxxxxxxxxxx>, "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] time.usleep(500) in xend
From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Date: Mon, 28 Feb 2005 21:00:04 -0000
Cc: <ian.pratt@xxxxxxxxxxxx>
Delivery-date: Mon, 28 Feb 2005 21:02:18 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
Thread-index: AcUdzfNa3w3pWxRSQ/yu/Hv712zHngACJ2vg
Thread-topic: [Xen-devel] time.usleep(500) in xend
 
 
> Whenever I first run xend in a boot, I'm getting the following error:
> Traceback (most recent call last):
>   File "/usr/sbin/xend", line 164, in ?
>     sys.exit(main())
>   File "/usr/sbin/xend", line 121, in main
>     time.usleep(500) # let xcs start
> AttributeError: 'module' object has no attribute 'usleep'
> 
> The workaround is easy enough for me since that section gets bypassed
> when I rerun xend.  I'm using python 2.3.5 and usleep doesn't 
> appear to
> be part of the time module, though I can't speak for other versions.
> 
> Doesn't this need to go back to a sleep(1) or did the minimum 
> version of
> python just change?

Thanks. I've changed it to "time.sleep(0.5)".

Ian


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>