Lines Matching refs:fifo
340 if mkfifo $tmp/fifo 2> /dev/null
341 then (print -n a; sleep 1;print -n bcde) > $tmp/fifo &
343 read -u5 -n3 -t2 a || err_exit 'read -n3 from fifo timedout'
344 read -u5 -n1 -t2 b || err_exit 'read -n1 from fifo timedout'
345 } 5< $tmp/fifo
346 [[ $a == a ]] || err_exit 'read -n3 from fifo not working'
347 rm -f $tmp/fifo
348 mkfifo $tmp/fifo 2> /dev/null
349 (print -n a; sleep 1;print -n bcde) > $tmp/fifo &
351 read -u5 -N3 -t2 a || err_exit 'read -N3 from fifo timed out'
352 read -u5 -N1 -t2 b || err_exit 'read -N1 from fifo timedout'
353 } 5< $tmp/fifo
354 [[ $a == abc ]] || err_exit 'read -N3 from fifo not working'
355 [[ $b == d ]] || err_exit 'read -N1 from fifo not working'