The only difficulty i see is that in order to get notifications on file
changes, with only dnotify present it would be necessary to watch the
directory it contains and filter only changes to this file.

It would be simple though to extend the Stdio.File()->notify to use inotify
for file changes if present. This would most likely not break any
existing code, since it currently works only on diretories.

On Fri, 20 Aug 2010, Bill Welliver wrote:

It would be nice if we could come up with an abstract interface so if someone were to write an interface to, say, FSEvents in OSX or FEN on Solaris, a developer could write common code that would work on multiple OSen.

That said, it could be a layer on top of whatever existing notification modules were written, so it wouldn't necessarily preclude action on this particular request.

Bill

On Fri, 20 Aug 2010, Arne Goedeke wrote:

 I merged the Public.System.Inotify module into pike as System.Inotify.
 Its currently only in my git. You can fetch the branch called 'inotify'
 at
 http://laramies.com/git/pike/

 I would like to commit this into cvs. However, it seems to me that the
 current policy is not to commit anything new until 7.9 is there? Also,
 right now it is seperate from the dnotify in Stdio. The inotify api is
 different from dnotify, so it might not be possible to merge that.

 All comments on the code welcome.

 arne


  • ... Arne Goedeke
    • ... Bill Welliver
      • ... Arne Goedeke
        • ... Marcus Agehall (nu med K-m�rkt fastighet och ny elcentral) @ Pike (-) developers forum
          • ... Arne Goedeke
            • ... Arne Goedeke
              • ... Tobias S. Josefowitz

Reply via email to