diff --git a/libs/estdlib/src/socket_dist.erl b/libs/estdlib/src/socket_dist.erl index dea43895a..2291be8a2 100644 --- a/libs/estdlib/src/socket_dist.erl +++ b/libs/estdlib/src/socket_dist.erl @@ -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, diff --git a/tests/libs/estdlib/test_net_kernel.erl b/tests/libs/estdlib/test_net_kernel.erl index dcc2d228d..d5fea5fd1 100644 --- a/tests/libs/estdlib/test_net_kernel.erl +++ b/tests/libs/estdlib/test_net_kernel.erl @@ -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.