Skip to content

Commit

Permalink
Merge pull request sonic-pi-net#2960 from ethancrawford/proofreading-1
Browse files Browse the repository at this point in the history
Typos - fix several typos in Tau & Daemon code
  • Loading branch information
samaaron authored Dec 27, 2021
2 parents 99064e2 + 7438dcd commit 80588bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/server/beam/tau/src/tau_server/tau_keepalive.erl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ start_link(KeepAlivePortNum, DaemonPortNum) ->
spawn_link(?MODULE, init, [KeepAlivePortNum, DaemonPortNum]).

init(KeepAlivePortNum, DaemonPortNum) ->
logger:error("Connecting tooo Daemon keepalive port via UDP...~p ~p", [KeepAlivePortNum, DaemonPortNum]),
logger:error("Connecting to Daemon keepalive port via UDP...~p ~p", [KeepAlivePortNum, DaemonPortNum]),

OSPid = list_to_integer(os:getpid()),
PidMsg = osc:encode(["/tau/pid", OSPid]),
Expand Down
11 changes: 5 additions & 6 deletions app/server/ruby/bin/daemon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
#
# The port number of this kill switch UDP connection is printed to
# STDOUT. A external process (such as the GUI) must connect promptly and
# periodicaly send an OSC message with the path /daemon/keep-alive (more
# periodically send an OSC message with the path /daemon/keep-alive (more
# frequently than every 3s) otherwise a timeout will trigger the kill
# switch and kill all the spawned processes.
#
Expand All @@ -86,9 +86,8 @@
# with each other. These ports are used to create the correct process
# arguments for spawning and are also passed to STDOUT.
#
# Some of these port numbers need to be known by the the client process
# so that it can send code to run and receives log updates both via UDP
# to specific ports.
# Some of these port numbers need to be known by the client process
# so that it can both send code to run and receive log updates via UDP.
#
# The current allocations of these external port numbers are printed to
# STDOUT in the following order:
Expand Down Expand Up @@ -119,7 +118,7 @@
# exit-token: String that can be sent as the single argument in an OSC
# message with path /daemon/exit sent to daemon-keep-alive
# to trigger the daemon kill switch and force it to exit
# early yet cleanly (i.e. all children processes are closed)..
# early yet cleanly (i.e. all child processes are closed).


module SonicPi
Expand Down Expand Up @@ -237,7 +236,7 @@ def udp_zombie_kill_switch(port_num, exit_token)
Util.log "Kill switch for port #{port_num} remotely activated using token #{exit_token}"
@safe_exit.exit
else
Util.log "Kill switch for port #{port_num} receieved incorrect token. Ignoring #{args[0]}"
Util.log "Kill switch for port #{port_num} received incorrect token. Ignoring #{args[0]}"
end
end
end
Expand Down

0 comments on commit 80588bd

Please sign in to comment.