From: Shea Martin Date: 2006-03-22T03:23:51+09:00 Subject: Re: TCPSocket.accept blocks signals on win32? Shea Martin wrote: > Mark Volkmann wrote: >> It is a mystery to me too. Sometimes I can break out of Ruby code >> using Ctrl-C under Windows. Other times I need to use Ctrl-Break. > > What signal does CTRL-Break send? I can't seem to trap it with 'KILL', > 'INT', or 'TERM'. Further: Signal.list.each_key { | sig | Kernel.trap( sig ) { puts "caught #{sig}" exit 1 } } sleep 30 exit 0 running this, then doing a Ctrl-Break, does not output anything, i.e., the signal is not trapped. Maybe it is not possible to trap break. ~S