From owner-freebsd-hackers Wed May 2 15:52:59 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from karon.dynas.se (karon.dynas.se [192.71.43.4]) by hub.freebsd.org (Postfix) with SMTP id 2685837B423 for ; Wed, 2 May 2001 15:52:55 -0700 (PDT) (envelope-from mikko@dynas.se) Received: (qmail 41469 invoked from network); 2 May 2001 22:51:54 -0000 Received: from spirit.sto.dynas.se (HELO spirit.dynas.se) (172.16.1.10) by 172.16.1.1 with SMTP; 2 May 2001 22:51:54 -0000 Received: (qmail 1867 invoked from network); 2 May 2001 22:52:57 -0000 Received: from explorer.rsa.com (10.81.217.59) by spirit.dynas.se with SMTP; 2 May 2001 22:52:57 -0000 Received: (from mikko@localhost) by explorer.rsa.com (8.11.3/8.11.1) id f42MpsH64241; Wed, 2 May 2001 15:51:54 -0700 (PDT) (envelope-from mikko) Date: Wed, 2 May 2001 15:51:54 -0700 (PDT) From: Mikko Tyolajarvi Message-Id: <200105022251.f42MpsH64241@explorer.rsa.com> To: dominic_marks@hotmail.com Cc: hackers@freebsd.org Subject: Re: KEvent doesnt return and KEvent sample troubles Newsgroups: local.freebsd.hackers References: X-Newsreader: NN version 6.5.6 (NOV) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In local.freebsd.hackers you write: >>* Dominic Marks [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