summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-02-06 17:52:34 -0600
committerLuke Kanies <luke@madstop.com>2009-02-06 18:08:44 -0600
commit53357884111d3499746b292f99948d5eb3c83415 (patch)
tree063ea361e228b5bf711a3b96ef2faa84bb74fce0 /bin
parent08a5d492dd3545366a2850d568d87aad0ba884e6 (diff)
downloadpuppet-53357884111d3499746b292f99948d5eb3c83415.tar.gz
puppet-53357884111d3499746b292f99948d5eb3c83415.tar.xz
puppet-53357884111d3499746b292f99948d5eb3c83415.zip
Fixing tests broken during the #1405 fix.
Most of these were small changes, like moved methods. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/filebucket5
-rwxr-xr-xbin/puppet5
2 files changed, 8 insertions, 2 deletions
diff --git a/bin/filebucket b/bin/filebucket
index 17e01ed64..ea75cb6de 100755
--- a/bin/filebucket
+++ b/bin/filebucket
@@ -152,7 +152,10 @@ Puppet::Log.newdestination(:console)
client = nil
server = nil
-Puppet.settraps
+trap(:INT) do
+ $stderr.puts "Cancelling"
+ exit(1)
+end
if options[:debug]
Puppet::Log.level = :debug
diff --git a/bin/puppet b/bin/puppet
index c01d7392c..e3a9c4f37 100755
--- a/bin/puppet
+++ b/bin/puppet
@@ -166,7 +166,10 @@ end
client = nil
server = nil
-Puppet.settraps
+trap(:INT) do
+ $stderr.puts "Exiting"
+ exit(1)
+end
if options[:debug]
Puppet::Util::Log.level = :debug