Skip to content

Commit

Permalink
Distribution: add support for autoconnect
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Guyot <pguyot@kallisys.net>
  • Loading branch information
pguyot committed Jan 20, 2025
1 parent 41d90c8 commit eceee6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions libs/estdlib/src/socket_dist.erl
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ do_setup(Kernel, Node, Type, MyNode, _LongOrShortNames, SetupTime) ->
of
ok ->
{ok, DistController} = socket_dist_controller:start(Sock),
true = socket_dist_controller:supervisor(DistController, self()),
HSData = hs_data(
Kernel,
MyNode,
Expand Down
3 changes: 3 additions & 0 deletions tests/libs/estdlib/test_net_kernel.erl
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ loop_read(Fd, Acc) ->
case atomvm:posix_read(Fd, 10) of
eof ->
lists:flatten(lists:reverse(Acc));
{error, eintr} ->
% used with lldb ;-)
loop_read(Fd, Acc);
{ok, Line} ->
loop_read(Fd, [binary_to_list(Line) | Acc])
end.
Expand Down

0 comments on commit eceee6f

Please sign in to comment.