summaryrefslogtreecommitdiff
path: root/lib/kernel/examples
diff options
context:
space:
mode:
authorKian-Meng, Ang <kianmeng@cpan.org>2021-12-19 16:30:37 +0800
committerKian-Meng, Ang <kianmeng@cpan.org>2021-12-23 20:56:00 +0800
commit796f11d4de1552abbcaf32052cc31f0ae5386222 (patch)
treeefb19ba39c5c351f4b3ef96a6baca81e72e29e95 /lib/kernel/examples
parent58838fa1b2a9325003e67b54630a64d75c390284 (diff)
downloaderlang-796f11d4de1552abbcaf32052cc31f0ae5386222.tar.gz
Fix typos in lib/kernel
Co-authored-by: Björn Gustavsson <bgustavsson@gmail.com>
Diffstat (limited to 'lib/kernel/examples')
-rw-r--r--lib/kernel/examples/erl_uds_dist/src/erl_uds_dist.erl6
-rw-r--r--lib/kernel/examples/gen_tcp_dist/src/gen_tcp_dist.erl8
-rw-r--r--lib/kernel/examples/uds_dist/c_src/uds_drv.c2
-rw-r--r--lib/kernel/examples/uds_dist/src/uds_server.erl2
4 files changed, 9 insertions, 9 deletions
diff --git a/lib/kernel/examples/erl_uds_dist/src/erl_uds_dist.erl b/lib/kernel/examples/erl_uds_dist/src/erl_uds_dist.erl
index b017667285..e4ef56b606 100644
--- a/lib/kernel/examples/erl_uds_dist/src/erl_uds_dist.erl
+++ b/lib/kernel/examples/erl_uds_dist/src/erl_uds_dist.erl
@@ -25,7 +25,7 @@
%% This is an example of how to plug in an alternative distribution
%% protocol using distribution controller processes. Erlang
%% distribution can use whatever underlying protocols as long as the
-%% implementation reliably delivers data chuncks to the receiving
+%% implementation reliably delivers data chunks to the receiving
%% Erlang node in the order they were sent by the sending node.
%%
%% This example uses stream-oriented Unix Domain Sockets (of the
@@ -74,7 +74,7 @@
%% If tracing is wanted, uncomment the dist_trace macro in dist_util.hrl
%% to enable all the calls to trace below, or copy the trace macro here.
%%
-%% Tracing will freeze the initial boot when a -name or -sname paramater
+%% Tracing will freeze the initial boot when a -name or -sname parameter
%% is passed to start directly distributed nodes. To make it work,
%% launch non-distributed nodes first (without -name and -sname) then
%% call net_kernel:start/1 to enable the distribution in a second stage.
@@ -417,7 +417,7 @@ accept_loop(Kernel, ListeningSocket) ->
%% The caller of accept_supervisor is a representative for net_kernel and
%% is identified as Kernel below.
%%
-%% AcceptPid is the process identifer created by accept/1.
+%% AcceptPid is the process identifier created by accept/1.
%%
%% DistCtrl is the identifier of the distribution controller process in
%% charge of the connection, as created by the accept_loop process above.
diff --git a/lib/kernel/examples/gen_tcp_dist/src/gen_tcp_dist.erl b/lib/kernel/examples/gen_tcp_dist/src/gen_tcp_dist.erl
index f4eb12818d..f73a622607 100644
--- a/lib/kernel/examples/gen_tcp_dist/src/gen_tcp_dist.erl
+++ b/lib/kernel/examples/gen_tcp_dist/src/gen_tcp_dist.erl
@@ -444,7 +444,7 @@ hs_data_common(DistCtrl) ->
%% the connection down if no incoming traffic is seen.
%% This process also executes on max priority.
%%
-%% These parties are linked togheter so should one
+%% These parties are linked together so should one
%% of them fail, all of them are terminated and the
%% connection is taken down.
%%
@@ -569,7 +569,7 @@ call_ctrlr(Ctrlr, Msg) ->
%% non-blocking send operation exposed in its API
%% and we don't want to run the distribution
%% controller under high priority. Therefore this
-%% sparate process with max prio that dispatches
+%% separate process with max prio that dispatches
%% ticks.
%%
dist_cntrlr_tick_handler(Socket) ->
@@ -700,7 +700,7 @@ dist_cntrlr_setup_loop(Socket, TickHandler, Sup) ->
dist_cntrlr_input_setup(DHandle, Socket, Sup) ->
link(Sup),
- %% Ensure we don't try to put data before registerd
+ %% Ensure we don't try to put data before we are registered
%% as input handler...
receive
DHandle ->
@@ -775,7 +775,7 @@ death_row() ->
death_row(normal) ->
%% We do not want to exit with normal
- %% exit reason since it wont bring down
+ %% exit reason since it won't bring down
%% linked processes...
death_row();
death_row(Reason) ->
diff --git a/lib/kernel/examples/uds_dist/c_src/uds_drv.c b/lib/kernel/examples/uds_dist/c_src/uds_drv.c
index 8c028ba910..6110ce6a72 100644
--- a/lib/kernel/examples/uds_dist/c_src/uds_drv.c
+++ b/lib/kernel/examples/uds_dist/c_src/uds_drv.c
@@ -1039,7 +1039,7 @@ static int try_lock(char *sockname, Byte *p_creation)
}
lseek(lockfd, 0, SEEK_SET);
write(lockfd, &creation, 1);
- fsync(lockfd); /* This could be concidered dangerous (blocking) */
+ fsync(lockfd); /* This could be considered dangerous (blocking) */
*p_creation = creation;
return lockfd;
}
diff --git a/lib/kernel/examples/uds_dist/src/uds_server.erl b/lib/kernel/examples/uds_dist/src/uds_server.erl
index c060130f9d..76eb869c5e 100644
--- a/lib/kernel/examples/uds_dist/src/uds_server.erl
+++ b/lib/kernel/examples/uds_dist/src/uds_server.erl
@@ -113,7 +113,7 @@ load_driver() ->
find_priv_lib() ->
PrivDir = case (catch code:priv_dir(uds_dist)) of
{'EXIT', _} ->
- %% Code server probably not startet yet
+ %% Code server probably not started yet
{ok, P} = erl_prim_loader:get_path(),
ModuleFile = atom_to_list(?MODULE) ++ extension(),
Pd = (catch lists:foldl