We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fa10f4 commit 137db52Copy full SHA for 137db52
internal/worker.zsh
@@ -19,7 +19,9 @@ function _p9k_worker_main() {
19
# usage: _p9k_worker_async <work> <callback>
20
function _p9k_worker_async() {
21
local fd async=$1
22
- sysopen -r -o cloexec -u fd <(() { eval $async; } && print -n '\x1e') || return
+ (print -n '\x1e' &)
23
+ pid=$!
24
+ wait $pid || return 1
25
(( ++_p9k_worker_inflight[$_p9k_worker_request_id] ))
26
_p9k_worker_fds[$fd]=$_p9k_worker_request_id$'\x1f'$2
27
}
0 commit comments