That works a treat - thanks Andy
On Tue, 2003-08-05 at 14:58, Luis Campos de Carvalho wrote: > Andy Ford wrote: > > I am testing out signal (I nearly wrote single - and I'm married) > > trapping so I can use it in a number of scrits all ready in service. > > > > <funny>Beware with the anger wife reading emails... =-] </funny> > > > The basic concept seems relatively straight forward, however my SIGHUP > > only seems to work once... > > > > $SIG{'HUP'} = \&catch_signal; # best strategy > > > > sub catch_signal > > { > > etc > > etc > > } > > > > This should be a simple one > > I vaguely remember of reading something about signal processing in > the Camel Book, saying that you should try > > $SIG{HUP} = \&process_sighup; > > sub process_sighup { > # signal processing here... > # ... > $SIG{HUP} = \&process_sighup; > } > > But I can be wrong, of course. > Regards.