gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FAM based fswatcher - first try


From: Philippe Roussel
Subject: Re: FAM based fswatcher - first try
Date: Wed, 24 Jan 2007 23:07:02 +0100
User-agent: Mutt/1.5.11

On Wed, Jan 24, 2007 at 09:27:05PM +0200, Enrico Sersale wrote:
> The original fswatcher doesn't create a new Watcher object if there already 
> is one for a path beeing added; it adds only a "listener", that is, it 
> increments a counter. When, removing all listeners, the counter becomes 0, 
> the Watcher object is removed from the watchers array.

In this case, a Watcher keeps a NSCountedSet of clients/listeners. If
you call fswatcher 10 times with the same path, a single watcher (with
a single FAM request) will be created, modulo bugs of course.

> '--daemon' is not intended to be used from the command line; it is only an 
> internal way to create a daemon using only NSTask instead of fork(); many 
> GNUstep daemons does this; gdnc, gpbs, etc.

Ok, thanks for the explanation.

Philippe
-- 
Always think of something new; this helps you forget your last rotten idea. 
Seth Frankel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]