From: Mike Hall Date: 2002-07-23T03:25:10+09:00 Subject: Q: threads and sleeping system calls I've been playing around, adding a Dir::notify method that uses 'directory notification' on Linux. Summary: do a couple file-controls, setup a signal handler, wait for a signal to occur. This works OK in a single threaded script, but it makes all the threads stop, when I use it inside a thread. Does anyone have any pointers to some thread-friendly ways of doing this? Should I try to use Ruby's signal and trap handling? (but I need to get to the 'siginfo' struct) Any clues appreciated! Thanks! -- Mike Hall http://www.enteract.com/~mghall