From: nobu.nokada@... Date: 2004-06-10T20:16:17+09:00 Subject: Re: Signals and threads Hi, At Thu, 10 Jun 2004 16:37:02 +0900, Gennady Bystritsky wrote in [ruby-talk:103056]: > sigquit_handler = trap "SIGQUIT", "IGNORE" > ... ignored> > trap "SIGQUIT", sigquit_handler > > I noticed that when the first trap returns nil, the second one does not > restore a signal handler to "DEFAULT", as I would expect. I have to do > something like that: > > trap "SIGQUIT", (sigquit_handler or "DEFAULT") Which version of ruby do you use? It should return nil at the first. $ ruby18 -v -e 'p trap("SIGQUIT", nil)' ruby 1.8.2 (2004-06-06) [i686-linux] "DEFAULT" -- Nobu Nakada