[gamin] python gamin hanging



I'm recursively watching a bunch of directories for changes using something like this:

gam = gamin.WatchMonitor()

for root, dirs, files in os.walk("/somedir"):
    for dir in dirs:
        mon.watch_directory (dir, some_callback)

It works most of the time, but occassionally (usually when a lot of directories are being watched), mon.watch_directory hangs completely.  The directory it hangs on seems to be arbitrary. 

What am I doing wrong?

Adam


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