[want to take this off-list?]
Slava> What's your Linux kernel version, and what distribution are you running?
I'm running under Debian stable (5.0), kernel 2.6.26-2-686. The errors
occur with today's binary release, factor-linux-x86-32-2009-10-20-06-56.
I built clean-linux-x86-32 from git yesterday, and having run
'"io.monitors" test' on that just now, it doesn't produce errors in the
listener but it does dump the following to stderr:
Error in thread 276 (Recursive monitor pump, [ ~recursive-monitor~
pump-thread ]):
Unix system call âlstatâ failed:
No such file or directory (2)
It was called with the following arguments:
"/home/conrad/factor/factor-clean-linux-x86-32/temp/doesnotexist"
S{ stat f 0 0 0 0 0 0 0 0 ~ushort-array~ 0 0 0 ~timespec~...
[ call -> stop ]
pump-thread
add-child-monitor
M\ unix link-info
link-status
unix-system-call-error
M\ object throw
[
63 getenv error-thread set-global
continuation -> error-continuation set-global rethrow
]
I'm reasonably experienced with C & some Linux kernel hacking, so could
poke at the C inotify API on my machine to see if I can turn up anything
useful there. I note that errno 28 (ENOSPC) is a documented failure
mode for inotify_add_watch --- from the man page:
ENOSPC The user limit on the total number of inotify watches was
reached or the kernel failed to allocate a needed resource.
A trivial piece of code calling inotify_init, inotify_add_watch and
inotify_rm_watch directly from C doesn't turn up any errors for me
though; the inotify system limits on my machine are as follows:
max_queued_events 16384
max_user_instances 128
max_user_watches 8192
Conrad
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk