From f014d7348fd5dc4bd699fca15c19a2c291df4bb3 Mon Sep 17 00:00:00 2001 From: "Michael V. O'Brien" Date: Fri, 14 Sep 2007 13:23:13 -0500 Subject: Partial fix for #772. The SIGHUP now produces a EOPNOTSUPP instead of NameError. --- lib/puppet.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit