[gamin] Signal handling in gamin vs. fam



Hi folks,

	I have a little script that uses the perl SGI::FAM module to 
monitor a few files.  It works fine under either fam or gamin, but 
with gamin there's one peculiarity.  

	The script has a signal handler that traps SIGUSR1.  When I
use the script on a computer with fam installed, and send the script
a USR1 signal, the signal handler is immediately called.  But when
I do the same thing on a machine with gamin, the signal handler isn't
called until the next fam event.  (I should say that the script is
basically just a loop that blocks on a $fam->next_event.)

	Any idea why this happens?

						Thanks,
						Bryan

-- 
===============================================================================
Bryan Wright                |"If you take cranberries and stew them like 
Physics Department          | applesauce, they taste much more like prunes 
University of Virginia      | than rhubarb does."  --  Groucho 
Charlottesville, VA  22901  |			
(434) 924-7218              |         bryan virginia edu
===============================================================================





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