summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/tiny_server.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/tiny_server.rb b/spec/tiny_server.rb
index a2cfe168d5..c28fdc30b3 100644
--- a/spec/tiny_server.rb
+++ b/spec/tiny_server.rb
@@ -1,6 +1,6 @@
#
# Author:: Daniel DeLeo (<dan@opscode.com>)
-# Copyright:: Copyright (c) 2010 Opscode, Inc.
+# Copyright:: Copyright (c) 2010-2015 Chef Software, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -66,9 +66,11 @@ module TinyServer
@server = Server.setup(@options) do
run API.instance
end
+ @old_handler = trap(:INT, "EXIT")
@server.start
end
block_until_started
+ trap(:INT, @old_handler)
end
def url