From owner-freebsd-current Tue Apr 8 11:39:23 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id LAA22838 for current-outgoing; Tue, 8 Apr 1997 11:39:23 -0700 (PDT) Received: from hda.hda.com (hda-bicnet.bicnet.net [207.198.1.121]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id LAA22828 for ; Tue, 8 Apr 1997 11:39:17 -0700 (PDT) Received: (from dufault@localhost) by hda.hda.com (8.8.5/8.8.5) id OAA14015; Tue, 8 Apr 1997 14:36:42 -0400 (EDT) From: Peter Dufault Message-Id: <199704081836.OAA14015@hda.hda.com> Subject: Re: POLL & the Single FreeBSD'r In-Reply-To: <199704081808.CAA11077@spinner.DIALix.COM> from Peter Wemm at "Apr 9, 97 02:08:36 am" To: peter@spinner.DIALix.COM (Peter Wemm) Date: Tue, 8 Apr 1997 14:36:41 -0400 (EDT) Cc: current@freebsd.org X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Oh, what a pleasant thought! :-) poll() a directory waiting for > something to put a file in there without having to wake up every so-many > seconds and stat the dir (as cron does). poll() a file to see time or > size changes, eg: do what tail -f does without having to sleep and re-read > every so often.. > > Hmm.. wasn't something like this in ITS? It's print spooler was > supposedly automatically woken when a file was placed in the queue > directory. The WIN32 API has this. I don't remember what it is. -- Peter Dufault (dufault@hda.com) Realtime Machine Control and Simulation HD Associates, Inc. Voice: 508 433 6936