class Process::Daemon

def sleep_until_interrupted

Call this function to sleep until the daemon is sent SIGINT.
def sleep_until_interrupted
	trap(:INT) do
		self.request_shutdown
	end
	@shutdown_notification.wait
end