Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 May 2001 15:51:54 -0700 (PDT)
From:      Mikko Tyolajarvi <mikko@dynas.se>
To:        dominic_marks@hotmail.com
Cc:        hackers@freebsd.org
Subject:   Re: KEvent doesnt return and KEvent sample troubles
Message-ID:  <200105022251.f42MpsH64241@explorer.rsa.com>
References:  <F135EpTX5V3GykBbKP70000025b@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In local.freebsd.hackers you write:

>>* Dominic Marks <dominic_marks@hotmail.com> [010502 14:29] wrote:
>> > I've been looking to start using the KEvent system and I've been
>> > experimenting with it. However I've been having several problems, with 
>>my
>> > own code as well as samples from http://www.flugsvamp.org.
>>
>>www.flugsvamp.org doesn't seem to resolve.

>Yes, a mistake on my part. It should have been flugsvamp.com.

[...]

>I just copied the example directly here so I couldn't comment absolute on 
>the decisions here. Having browsed through the man page I've edited the 
>original sample, moving some of the arguments around - where these ever 
>moved one way and since changed perhaps? However what I believe to be 
>correct now equally refuses to respond.

Works here (4.3-RC, Apr 19), provided that you append to the file.  If
you just overwrite it with the same amount of data, read() will return
zero, and you get no output.  Check out the source for tail(1) for a
more complete example (in /usr/src/usr.bin/tail/forward.c)

  $.02,
  /Mikko
-- 
 Mikko Työläjärvi_______________________________________mikko@rsasecurity.com
 RSA Security

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105022251.f42MpsH64241>