Skip to content

Commit 3f09368

Browse files
committed
Merge pull request #32 from Exoth/master
Remove "KILL" from the list of trapped signals to avoid crash on ruby-2.2.0.
2 parents 0fcd088 + 3f56b2d commit 3f09368

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/forever/base.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def initialize(options={}, &block)
7474
print "[\e[90m%s\e[0m] Process %s with pid \e[1m%d\e[0m with \e[1m%s\e[0m and Forever v.%s\n" %
7575
[name, detach != false ? :daemonized : :running, Process.pid, forking ? :fork : :thread, Forever::VERSION]
7676

77-
%w(INT TERM KILL).each { |signal| trap(signal) { stop! } }
77+
%w(INT TERM).each { |signal| trap(signal) { stop! } }
7878
trap(:HUP) do
7979
IO.open(1, 'w'){ |s| s.puts config }
8080
end

0 commit comments

Comments
 (0)