diff options
author | John Högberg <[email protected]> | 2018-02-13 09:46:35 +0100 |
---|---|---|
committer | John Högberg <[email protected]> | 2018-02-13 09:46:35 +0100 |
commit | 78baf69b8b37b543f419fcd5a606cba2c60abea0 (patch) | |
tree | b2eea7a8bee9cb2a7d1673418350d9674d93d833 /lib/tools/src | |
parent | ee477c8d88d2139035c503e97e42e88fe500170f (diff) | |
parent | ab965710d014912cbd3c4ef8f9c3acc0dffa1d30 (diff) | |
download | otp-78baf69b8b37b543f419fcd5a606cba2c60abea0.tar.gz otp-78baf69b8b37b543f419fcd5a606cba2c60abea0.tar.bz2 otp-78baf69b8b37b543f419fcd5a606cba2c60abea0.zip |
Merge branch 'john/tools/autostart-lcnt-server/ERIERL-134/OTP-14913' into maint
Diffstat (limited to 'lib/tools/src')
-rw-r--r-- | lib/tools/src/lcnt.erl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/tools/src/lcnt.erl b/lib/tools/src/lcnt.erl index 139b3d8a4a..20b031a7ad 100644 --- a/lib/tools/src/lcnt.erl +++ b/lib/tools/src/lcnt.erl @@ -218,9 +218,11 @@ raw() -> call(raw). set(Option, Value) -> call({set, Option, Value}). set({Option, Value}) -> call({set, Option, Value}). save(Filename) -> call({save, Filename}). -load(Filename) -> ok = start_internal(), call({load, Filename}). +load(Filename) -> call({load, Filename}). -call(Msg) -> gen_server:call(?MODULE, Msg, infinity). +call(Msg) -> + ok = start_internal(), + gen_server:call(?MODULE, Msg, infinity). %% -------------------------------------------------------------------- %% %% @@ -237,7 +239,6 @@ apply(Fun) when is_function(Fun) -> lcnt:apply(Fun, []). apply(Fun, As) when is_function(Fun) -> - ok = start_internal(), Opt = lcnt:rt_opt({copy_save, true}), lcnt:clear(), Res = erlang:apply(Fun, As), |