From: Elite Force Date: 2006-07-17T18:43:58+09:00 Subject: Catch ^c/signals? blocks? Hello, I'm kinda new to ruby and have a few questions. If i run a ruby script it can be interrupted with ^c or signals (e.g. killall ruby"). Is it possible to catch those to do cleanup stuff before exiting? Whats the difference between { ... } and do ... end? Are they both blocks? When to use what? I'd really appreciate it if you could answer my questions, thanks. -- Posted via http://www.ruby-forum.com/.