lib/einhorn/command/interface.rb in einhorn-0.7.2 vs lib/einhorn/command/interface.rb in einhorn-0.7.3
- old
+ new
@@ -146,37 +146,37 @@
end
## Signals
def self.install_handlers
trap_async("INT") do
- Einhorn::Command.signal_all("USR2", Einhorn::WorkerPool.workers)
+ Einhorn::Command.signal_all("USR2")
Einhorn::Command.stop_respawning
end
trap_async("TERM") do
- Einhorn::Command.signal_all("TERM", Einhorn::WorkerPool.workers)
+ Einhorn::Command.signal_all("TERM")
Einhorn::Command.stop_respawning
end
# Note that quit is a bit different, in that it will actually
# make Einhorn quit without waiting for children to exit.
trap_async("QUIT") do
- Einhorn::Command.signal_all("QUIT", Einhorn::WorkerPool.workers)
+ Einhorn::Command.signal_all("QUIT")
Einhorn::Command.stop_respawning
exit(1)
end
trap_async("HUP") {Einhorn::Command.full_upgrade_smooth}
trap_async("ALRM") do
Einhorn.log_error("Upgrading using SIGALRM is deprecated. Please switch to SIGHUP")
Einhorn::Command.full_upgrade_smooth
end
trap_async("CHLD") {}
trap_async("USR2") do
- Einhorn::Command.signal_all("USR2", Einhorn::WorkerPool.workers)
+ Einhorn::Command.signal_all("USR2")
Einhorn::Command.stop_respawning
end
at_exit do
if Einhorn::State.kill_children_on_exit && Einhorn::TransientState.whatami == :master
- Einhorn::Command.signal_all("USR2", Einhorn::WorkerPool.workers)
+ Einhorn::Command.signal_all("USR2")
Einhorn::Command.stop_respawning
end
end
end
@@ -405,10 +405,10 @@
next message
end
signal = args[0] || "USR2"
- response = Einhorn::Command.signal_all(signal, Einhorn::WorkerPool.workers)
+ response = Einhorn::Command.signal_all(signal)
Einhorn::Command.stop_respawning
"Einhorn is going down! #{response}"
end