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

Re: [Xen-devel] xs_unwatch



On Thu, 2013-08-15 at 14:52 -0700, Shakil k wrote:
> Hello Xen Team,
> 
> 
> I wanted to use the xenstore API to monitor the change of value for
> one of the node, being written by xenstore-write.
> I can use xs_watch to look for the value change in node, however if
> suppose the client who is suppose to update the value to node died, so
> I don't want to keep waiting forever, hence I want a timeout for
> watch.
> I thought probably I can do xs_unwatch after certain defined timeout
> but somehow its not working.
> Is there a way to specify timeout to watch, rather than just n
> iterations?

watches are in place until you unwatch, there is no concept of either
timeouts or n-iterations.

You would have to implement this in your client, by select()ing (or poll
etc) on the xenstore fd with a timeout and managing the xs_unwatch
yourself.

Ian.

> 
> 
> Thanks for the help.
> 
> 
> Regards
> Shakil
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxx
> http://lists.xen.org/xen-devel



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