From: Ian Campbell <ian.campbell@citrix.com>
To: Shakil k <shakilk1729@gmail.com>
Cc: xen-devel@lists.xenproject.org
Subject: Re: xs_unwatch
Date: Fri, 16 Aug 2013 13:00:00 +0100 [thread overview]
Message-ID: <1376654400.6213.1.camel@hastur.hellion.org.uk> (raw)
In-Reply-To: <CAGiEYNdjAvTQsF7Pv8gZ63sa7WgzcaioKmkRwVK_rOBtdyqRFg@mail.gmail.com>
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
prev parent reply other threads:[~2013-08-16 12:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-15 21:52 xs_unwatch Shakil k
2013-08-16 12:00 ` Ian Campbell [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1376654400.6213.1.camel@hastur.hellion.org.uk \
--to=ian.campbell@citrix.com \
--cc=shakilk1729@gmail.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).