Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
0973-Terminate-compiler-server-when-code-lib_di...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0973-Terminate-compiler-server-when-code-lib_dir-changes.patch of Package erlang
From 9e0fc7ae8a4b92b9ac464ee5a31cad331c44ff9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org> Date: Fri, 12 Jan 2024 13:56:07 +0100 Subject: [PATCH] Terminate compiler server when code:lib_dir() changes --- lib/kernel/src/erl_compile_server.erl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/kernel/src/erl_compile_server.erl b/lib/kernel/src/erl_compile_server.erl index 3910d32cac..94fe9bc9e6 100644 --- a/lib/kernel/src/erl_compile_server.erl +++ b/lib/kernel/src/erl_compile_server.erl @@ -194,8 +194,12 @@ clean_path_args(PathArgs, Cwd) -> [filename:absname(P, Cwd) || P <- PathArgs]. make_config(PathArgs, Env0) -> + {ok,Files} = file:list_dir(code:lib_dir()), + LibDirSize = length(Files), Env = lists:sort(Env0), - PathArgs ++ [iolist_to_binary([[Name,$=,Val,$\n] || {Name,Val} <- Env])]. + PathArgs ++ [LibDirSize] ++ + [iolist_to_binary([[Name,$=,Val,$\n] || {Name,Val} <- Env])]. + %%% %%% A group leader that will capture all output to the group leader. -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor