aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/p10k.zsh6
-rw-r--r--internal/worker.zsh7
2 files changed, 6 insertions, 7 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 7469ba8b..3880e556 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -5297,6 +5297,12 @@ typeset -g _p9k__param_pat
typeset -g _p9k__param_sig
_p9k_init_vars() {
+ typeset -g _p9k__worker_pid
+ typeset -g _p9k__worker_req_fd
+ typeset -g _p9k__worker_resp_fd
+ typeset -g _p9k__worker_shell_pid
+ typeset -g _p9k__worker_file_prefix
+ typeset -gA _p9k__worker_request_map
typeset -ga _p9k__segment_cond_left
typeset -ga _p9k__segment_cond_right
typeset -ga _p9k__segment_val_left
diff --git a/internal/worker.zsh b/internal/worker.zsh
index 99948c46..464a2b9d 100644
--- a/internal/worker.zsh
+++ b/internal/worker.zsh
@@ -74,13 +74,6 @@ function _p9k_worker_main() {
}
}
-typeset -g _p9k__worker_pid
-typeset -g _p9k__worker_req_fd
-typeset -g _p9k__worker_resp_fd
-typeset -g _p9k__worker_shell_pid
-typeset -g _p9k__worker_file_prefix
-typeset -gA _p9k__worker_request_map
-
# invoked in master: _p9k_worker_invoke <request-id> <list>
function _p9k_worker_invoke() {
[[ -n $_p9k__worker_resp_fd ]] || return