summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMichael V. O'Brien <michael@reductivelabs.com>2007-09-14 13:23:13 -0500
committerMichael V. O'Brien <michael@reductivelabs.com>2007-09-14 13:23:13 -0500
commitf014d7348fd5dc4bd699fca15c19a2c291df4bb3 (patch)
treed2603bfd493bb0509bf5a7b45d62f37013d9ad53 /lib
parentc319fd059d2d563432700214d4946cf0bf925894 (diff)
downloadpuppet-f014d7348fd5dc4bd699fca15c19a2c291df4bb3.tar.gz
puppet-f014d7348fd5dc4bd699fca15c19a2c291df4bb3.tar.xz
puppet-f014d7348fd5dc4bd699fca15c19a2c291df4bb3.zip
Partial fix for #772. The SIGHUP now produces a EOPNOTSUPP instead of NameError.
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet.rb b/lib/puppet.rb
index b9a09bb49..20d879fdf 100644
--- a/lib/puppet.rb
+++ b/lib/puppet.rb
@@ -242,7 +242,7 @@ module Puppet
# Handle restarting.
trap(:HUP) do
- if client = @services.find { |s| s.is_a? Puppet::Network::Client::Master } and client.running?
+ if client = @services.find { |s| s.is_a? Puppet::Network::Client.master } and client.running?
client.restart
else
Puppet.restart