File 2382-inets-change-order-of-application-start.patch of Package erlang
From 74405eb5523ff9f578aee282cb1848bb6e888ac3 Mon Sep 17 00:00:00 2001
From: Kiko Fernandez-Reyes <kiko@erlang.org>
Date: Mon, 25 Sep 2023 09:14:23 +0200
Subject: [PATCH 2/2] inets: change order of application start
to maintain backwards compatibility while starting ssl behind the
scenes, we execute the inets start as last step. this means that we can
detect if the inets app was already started, as someone may be testing
this as a test case. had we use `application:ensure_all_started([inets,
ssl])`, we would have changed the external behaviour.
---
lib/inets/src/inets_app/inets.erl | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/lib/inets/src/inets_app/inets.erl b/lib/inets/src/inets_app/inets.erl
index 1ae331bb58..35da4efc8e 100644
--- a/lib/inets/src/inets_app/inets.erl
+++ b/lib/inets/src/inets_app/inets.erl
@@ -48,12 +48,11 @@
%% is temporary. see application(3)
%%--------------------------------------------------------------------
start() ->
- application:ensure_all_started([inets, ssl]).
+ application:start(inets, temporary).
start(Type) ->
- application:start(inets, Type),
- application:ensure_all_started(ssl).
-
+ application:ensure_all_started(ssl),
+ application:start(inets, Type).
%%--------------------------------------------------------------------
%% Function: start(Service, ServiceConfig [, How]) -> {ok, Pid} |
--
2.35.3