diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-06-03 10:22:15 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-06-03 10:22:15 +0300 |
commit | f82d0de0d30916ee7cd1b1d948890407467418c1 (patch) | |
tree | 12694bf912b6901f72873e29443251142304c351 /internal/worker.zsh | |
parent | 2b1d0e599cbf3769c97ce63797dbc6d6de31467c (diff) |
remove spurious error messages from _p9k_worker_stop
Diffstat (limited to 'internal/worker.zsh')
-rw-r--r-- | internal/worker.zsh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/worker.zsh b/internal/worker.zsh index 4b3f40e4..8eb21af3 100644 --- a/internal/worker.zsh +++ b/internal/worker.zsh @@ -89,13 +89,15 @@ function _p9k_worker_invoke() { } function _p9k_worker_cleanup() { - # langinfo may not be available here. - eval "$__p9k_intro_no_locale" + # __p9k_intro bugs out here in some cases for some reason. + emulate -L zsh [[ $_p9k__worker_shell_pid == $sysparams[pid] ]] && _p9k_worker_stop return 0 } function _p9k_worker_stop() { + # See comments in _p9k_worker_cleanup. + emulate -L zsh add-zsh-hook -D zshexit _p9k_worker_cleanup [[ -n $_p9k__worker_resp_fd ]] && zle -F $_p9k__worker_resp_fd [[ -n $_p9k__worker_resp_fd ]] && exec {_p9k__worker_resp_fd}>&- |