* xs_unwatch
@ 2013-08-15 21:52 Shakil k
2013-08-16 12:00 ` xs_unwatch Ian Campbell
0 siblings, 1 reply; 2+ messages in thread
From: Shakil k @ 2013-08-15 21:52 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 557 bytes --]
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?
Thanks for the help.
Regards
Shakil
[-- Attachment #1.2: Type: text/html, Size: 699 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: xs_unwatch
2013-08-15 21:52 xs_unwatch Shakil k
@ 2013-08-16 12:00 ` Ian Campbell
0 siblings, 0 replies; 2+ messages in thread
From: Ian Campbell @ 2013-08-16 12:00 UTC (permalink / raw)
To: Shakil k; +Cc: xen-devel
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@lists.xen.org
> http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-16 12:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-15 21:52 xs_unwatch Shakil k
2013-08-16 12:00 ` xs_unwatch Ian Campbell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).