From f94d03c6aefd55aad016c944f11d4dabd5ce49c5 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Mon, 8 Apr 2013 09:41:59 -0400 Subject: [PATCH] be sure to actually catch signals for closing and act on them --- lib/persistent_selenium/cli.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/persistent_selenium/cli.rb b/lib/persistent_selenium/cli.rb index f305424..9723580 100644 --- a/lib/persistent_selenium/cli.rb +++ b/lib/persistent_selenium/cli.rb @@ -27,6 +27,9 @@ module PersistentSelenium DRb.start_service PersistentSelenium.url, @browser + trap('TERM') { exit } + trap('INT') { exit } + DRb.thread.join end