Skip to content

Commit 0cdea3e

Browse files
Nuo Yandanielsdeleo
authored andcommitted
trap HUP signal only if not on Windows
1 parent 0709eba commit 0cdea3e

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎chef/lib/chef/application.rb‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ def initialize
3434
Chef::Application.fatal!("SIGINT received, stopping", 2)
3535
end
3636

37-
trap("HUP") do
38-
Chef::Log.info("SIGHUP received, reconfiguring")
39-
reconfigure
37+
unless RUBY_PLATFORM =~ /mswin|mingw32/
38+
trap("HUP") do
39+
Chef::Log.info("SIGHUP received, reconfiguring")
40+
reconfigure
41+
end
4042
end
4143

4244
at_exit do

0 commit comments

Comments
 (0)