From: John Halfpenny Date: 2011-10-14T20:32:37+09:00 Subject: Signal handling cross-platform Hi everyone, I'm new to Ruby and am coding a program intended to be cross platform- Windows, Mac, Linux. I'm going to run it as a background process and wondered whether there is a way to trap an OS signal that the host is shutting down, allowing Ruby to tidy some things up first. From what I gather the signal events between OSes are different, so I fully expect to have to code conditionally, but any advice or pointers would be greatly received, I've reached the point of Google blindness. (: Thx John -- Posted via http://www.ruby-forum.com/.