On Sat, 19 Jun 2004, Jean Delvare wrote: > Hi Dean, > > > Add END {} block to restore fans on many kinds of errors/interrupts. > > Remove arugment from restorefans > > Two questions: > > 1* What cases are you trying to catch? You already seem to be catching > all possible signals. > > 2* I suspect that the restorefans() function will be called twice more > often than not. Since the END block is executed on exit, and > restorefans() exits, won't it call itself each time? > That could be easily avoided by having a global state variable that can be checked in END(), such that it does not call restorefans() if it has already been called. Cheers...james > Thanks. > >