Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:18
erlang-history
erlang-history-kernel-Fix-accidental-disabling-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File erlang-history-kernel-Fix-accidental-disabling-of-shell-history.patch of Package erlang-history
diff -Ndurp erlang-history/src/5.2/group_history.erl erlang-history-kernel-Fix-accidental-disabling-of-shell-history/src/5.2/group_history.erl --- erlang-history/src/5.2/group_history.erl 2019-09-16 13:24:50.323848140 +0300 +++ erlang-history-kernel-Fix-accidental-disabling-of-shell-history/src/5.2/group_history.erl 2019-09-16 13:26:16.383197762 +0300 @@ -162,11 +162,15 @@ matches_log(Txt) -> %% Return whether the shell history is enabled or not -spec history_status() -> enabled | disabled. history_status() -> - case is_user() orelse init_running() orelse application:get_env(kernel, shell_history) of - true -> disabled; % don't run for user proc - {ok, enabled} -> enabled; - undefined -> ?DEFAULT_STATUS; - _ -> disabled + %% Don't run for user proc or if the emulator's tearing down + Skip = is_user() orelse not init_running(), + case application:get_env(kernel, shell_history) of + {ok, enabled} when not Skip -> + enabled; + undefined when not Skip -> + ?DEFAULT_STATUS; + _ -> + disabled end. %% Return whether the user process is running this
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