Skip to content

Commit 465d663

Browse files
committed
Daemon - improve robustness of tau aliveness check
We now test for both the liveness of the comms thread *and* the liveness of the boot process.
1 parent 7b8e09c commit 465d663

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/server/ruby/bin/daemon.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ def initialize(ports)
550550
recv_osc = lambda do
551551
size_str = client.recvfrom(4, Socket::MSG_WAITALL)[0].chomp
552552
size = size_str.unpack('N')[0]
553-
raise "Critical Error: Bad TCP OSC size received from Tau #{size_str}" unless size
553+
raise "Critical Error: Bad TCP OSC size received from Tau #{size_satr.inspect}" unless size
554554
data_raw = client.recvfrom(size, Socket::MSG_WAITALL)[0].chomp
555555
osc_decoder.decode_single_message(data_raw)
556556
end
@@ -604,7 +604,7 @@ def initialize(ports)
604604
end
605605

606606
def process_running?
607-
@tau_comms_thread.alive?
607+
@tau_comms_thread.alive? || super
608608
end
609609

610610
def kill

0 commit comments

Comments
 (0)