summaryrefslogtreecommitdiff
path: root/internal/worker.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-02-06 13:38:04 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-02-06 13:38:04 +0300
commita5b59457920d8ceb4fbfa6fafaa2ddbde29fb405 (patch)
tree1e14753ffd7d3400e6cfcbe122dca40c1a9e66e3 /internal/worker.zsh
parente2571dc95a432d443999d45a1606f4ed8890d36c (diff)
parentd7168759181d2b80689637b87083bca3e5279935 (diff)
Merge branch 'master' into asdf
Diffstat (limited to 'internal/worker.zsh')
-rw-r--r--internal/worker.zsh2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/worker.zsh b/internal/worker.zsh
index ce38af98..cca786fc 100644
--- a/internal/worker.zsh
+++ b/internal/worker.zsh
@@ -34,6 +34,7 @@ function _p9k_worker_main() {
if [[ $fd == 0 ]]; then
local buf=
while true; do
+ [[ -t 0 ]]
sysread -t 0 'buf[$#buf+1]' && continue
(( $? == 4 )) || return
[[ $buf[-1] == (|$'\x1e') ]] && break
@@ -115,6 +116,7 @@ function _p9k_worker_receive() {
local buf resp
while true; do
+ [[ -t $_p9k__worker_resp_fd ]]
sysread -t 0 -i $_p9k__worker_resp_fd 'buf[$#buf+1]' && continue
(( $? == 4 )) || return
[[ $buf == (|*$'\x1e')$'\x05'# ]] && break