|
|
@ -50,9 +50,12 @@ function _p9k_worker_main() {
|
|
|
|
else
|
|
|
|
else
|
|
|
|
local REPLY=
|
|
|
|
local REPLY=
|
|
|
|
while true; do
|
|
|
|
while true; do
|
|
|
|
sysread -i $fd 'REPLY[$#REPLY+1]' && continue
|
|
|
|
if sysread -i $fd 'REPLY[$#REPLY+1]'; then
|
|
|
|
(( $? == 5 )) || return
|
|
|
|
[[ $REPLY == *$'\x1e' ]] || continue
|
|
|
|
break
|
|
|
|
else
|
|
|
|
|
|
|
|
(( $? == 5 )) || return
|
|
|
|
|
|
|
|
break
|
|
|
|
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
done
|
|
|
|
local cb=$_p9k_worker_fds[$fd]
|
|
|
|
local cb=$_p9k_worker_fds[$fd]
|
|
|
|
_p9k_worker_request_id=${cb%%$'\x1f'*}
|
|
|
|
_p9k_worker_request_id=${cb%%$'\x1f'*}
|
|
|
|