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

Re: [Xen-devel] Why xs_handle is not part of header rather xs.c file



On Fri, 2013-08-30 at 09:58 -0700, Shakil k wrote:

>         
>        The reason being for watch functionality we have n number of times to 
> watch for. However
>        it doesn't have a timeout. What if my program waiting for watch and 
> the data is never delivered
>        as the client died or crashed.

You use xs_fileno() to get an fd which you can then use select(2) or
poll(2) with a timeout on.

Ian.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.