1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-24 16:11:57 +00:00

explicit exec in worker

This commit is contained in:
romkatv 2020-01-19 19:28:42 +01:00
parent 0d8a51bcf3
commit 430c2b0178

View file

@ -283,10 +283,10 @@ function _p9k_worker_start() {
} always { rm -f -- $fifo }
IFS= read -rd $'"'\\x1e'"' && eval $REPLY
} &!
command true'
exec true'
sysopen -r -o cloexec -u _p9k__worker_resp_fd <(
_p9k_worker_bootstrap=${bootstrap// ##} </dev/null 4>&1 &>>$log_file \
$zsh -${trace}dfmc '"eval" "$_p9k_worker_bootstrap"' ) || return
exec $zsh -${trace}dfmc '"eval" "$_p9k_worker_bootstrap"') || return
zle -F $_p9k__worker_resp_fd _p9k_worker_receive
_p9k__worker_shell_pid=$sysparams[pid]
add-zsh-hook zshexit _p9k_worker_cleanup