9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] inotify / waiting for events on 9p
@ 2007-09-17 14:51 Enrico Weigelt
  2007-09-17 14:55 ` erik quanstrom
  2007-09-17 14:57 ` ron minnich
  0 siblings, 2 replies; 3+ messages in thread
From: Enrico Weigelt @ 2007-09-17 14:51 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs


Hi folks,


I'm currently thinking about event notifications via 9p.
An simple way would be just reading from some file, and this
read operation will sleep until some event occours.

The question is: how long can that operation sleep ?
Is there any timeout ?


cu
--
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service - http://www.metux.de/
---------------------------------------------------------------------
 Please visit the OpenSource QM Taskforce:
 	http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
	http://patches.metux.de/
---------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9fans] inotify / waiting for events on 9p
  2007-09-17 14:51 [9fans] inotify / waiting for events on 9p Enrico Weigelt
@ 2007-09-17 14:55 ` erik quanstrom
  2007-09-17 14:57 ` ron minnich
  1 sibling, 0 replies; 3+ messages in thread
From: erik quanstrom @ 2007-09-17 14:55 UTC (permalink / raw)
  To: weigelt, 9fans

> I'm currently thinking about event notifications via 9p.
> An simple way would be just reading from some file, and this
> read operation will sleep until some event occours.
>
> The question is: how long can that operation sleep ?
> Is there any timeout ?

neither 9p nor the plan 9 kernel nor unix system calls have read timeouts.
particular filesystems like nfs might.

- erik


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9fans] inotify / waiting for events on 9p
  2007-09-17 14:51 [9fans] inotify / waiting for events on 9p Enrico Weigelt
  2007-09-17 14:55 ` erik quanstrom
@ 2007-09-17 14:57 ` ron minnich
  1 sibling, 0 replies; 3+ messages in thread
From: ron minnich @ 2007-09-17 14:57 UTC (permalink / raw)
  To: weigelt, Fans of the OS Plan 9 from Bell Labs

On 9/17/07, Enrico Weigelt <weigelt@metux.de> wrote:

> The question is: how long can that operation sleep ?
> Is there any timeout ?

totally depends on what's at the other end. Also, it can always return
with no event having happened -- think "remote system died".

So, in general, plan for  a failure.

ron


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-09-17 14:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-17 14:51 [9fans] inotify / waiting for events on 9p Enrico Weigelt
2007-09-17 14:55 ` erik quanstrom
2007-09-17 14:57 ` ron minnich

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).