Skip to content

Commit 452a8bf

Browse files
committed
Daemon - improve comments
Thanks to @ethancrawford for the suggestions.
1 parent 6a85b56 commit 452a8bf

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

app/server/ruby/bin/daemon.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@
5454
# as zombies (processes still accidentally running on your computer
5555
# consuming resources).
5656
#
57-
# This is achieved via a "Zombie Kill Switch" - a TCP connection with
58-
# the an external process (such as the GUI) to monitor its status by
57+
# This is achieved via a "Zombie Kill Switch" - a TCP connection with an
58+
# external process (such as the GUI) to monitor its status by
5959
# continually receiving keep_alive messages. If these messages stop
6060
# being received (for example, if the GUI process exited normally or
6161
# even crashed) then the Daemon will ensure all the processes it spawned
6262
# (Spider, Tau and Scsynth) are terminated.
6363
#
6464
# The port number of this kill switch TCP connection is printed to
6565
# STDOUT. A external process (such as the GUI) must connect promptly and
66-
# periodicaly send some bytes (more frequently than every 3s) otherwise
66+
# periodicaly send some bytes (more frequently than every 5s) otherwise
6767
# a timeout will trigger the kill switch and kill all the spawned
6868
# processes.
6969
#
@@ -72,16 +72,16 @@
7272
# ---------------
7373
#
7474
# Boot Daemon figures out appropriate (and currently free) values for
75-
# all the ports used by various processess within Sonic Pi to
75+
# all the ports used by various processes within Sonic Pi to
7676
# communicate with each other. These ports are used to create the
7777
# correct process arguments for spawning and are also passed to STDOUT.
7878
#
7979
# Some of these port numbers need to be known by external processes -
80-
# such as a GUI process sends code to run and receives log updates both
80+
# such as a GUI process that sends code to run and receives log updates both
8181
# via UDP to specific ports.
8282
#
8383
# The current allocations of these external port numbers are printed to
84-
# STDOUT the current allocations for the following order:
84+
# STDOUT in the following order:
8585
#
8686
# daemon-keep-alive gui-listen-to-server gui-send-to-server scsynth osc-cues
8787
#
@@ -628,7 +628,7 @@ def run_post_start_commands
628628
Thread.new do
629629
Kernel.sleep 5
630630
# Note:
631-
# need to modoify this to take account for @num_inputs and @num_outputs.
631+
# need to modify this to take account for @num_inputs and @num_outputs.
632632
# These might not always be set to two channels each.
633633
if @jack_booter
634634
#First clear up any pulseaudio remains of module-loopback source=jack_in
@@ -707,7 +707,7 @@ class PortDiscovery
707707
attr_reader :ports
708708

709709
# Change these values to alter the ports
710-
# Sonic Pi uses to send and receive messages# at run time:
710+
# Sonic Pi uses to send and receive messages at run time:
711711
PORT_CONFIG = {
712712
# Port daemon uses to communicate with GUI or other controlling process
713713
"daemon-keep-alive" => :dynamic,

0 commit comments

Comments
 (0)