summaryrefslogtreecommitdiff
path: root/internal/worker.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-05-04 14:24:22 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-05-04 14:24:22 +0300
commit2cc815deaf0ef76466f85bb94de9483567f0c0b5 (patch)
tree3b932c31e86cf5bc4ffc003f1a53bd5b89a6001e /internal/worker.zsh
parentb2c77eb37075d6bd97f7eb55db722ae83fefa202 (diff)
'cd /' in the worker to avoid locking cwd
Diffstat (limited to 'internal/worker.zsh')
-rw-r--r--internal/worker.zsh1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/worker.zsh b/internal/worker.zsh
index 644d74c6..fb554907 100644
--- a/internal/worker.zsh
+++ b/internal/worker.zsh
@@ -188,6 +188,7 @@ function _p9k_worker_start() {
else
exec 2>/dev/null
fi
+ cd / || return
zmodload zsh/zselect || return
! { zselect -t0 || (( $? != 1 )) } || return
local _p9k_worker_pgid=$sysparams[pid]