diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2020-01-19 21:28:42 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2020-01-19 21:28:42 +0300 |
commit | 430c2b01784bcc558734d3d0a71fbd25bf93f377 (patch) | |
tree | 4b1e7fcd13e264e78b86f2230aa8ae93a39389b6 | |
parent | 0d8a51bcf30d42dea50eb7dc3f7ee72e9a5aaae2 (diff) |
explicit exec in worker
-rw-r--r-- | internal/worker.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/worker.zsh b/internal/worker.zsh index 3db5a58d..a3d69f21 100644 --- a/internal/worker.zsh +++ b/internal/worker.zsh @@ -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 |