summaryrefslogtreecommitdiffstats
path: root/term-utils/script.1
diff options
context:
space:
mode:
authorKarel Zak2015-06-17 15:48:50 +0200
committerKarel Zak2015-06-17 15:48:50 +0200
commit54c6611d6f7b73609a5331f4d0bcf63c4af6429e (patch)
treedf302d9dfc4c8c7337916c2dc232b840c1f4a81e /term-utils/script.1
parentscript: improve poll debugging (diff)
downloadkernel-qcow2-util-linux-54c6611d6f7b73609a5331f4d0bcf63c4af6429e.tar.gz
kernel-qcow2-util-linux-54c6611d6f7b73609a5331f4d0bcf63c4af6429e.tar.xz
kernel-qcow2-util-linux-54c6611d6f7b73609a5331f4d0bcf63c4af6429e.zip
script: fix EOF problems
* remove STDIN from poll() if: * STDIN already closed -- poll returns POLLHUP, for example: echo "date" | script * detect EOF as returned by read(), for example: script -c "echo Hello" < /dev/null * don't write to master when there is still something to read from slave (it means shell is not initialized yet or busy) Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'term-utils/script.1')
0 files changed, 0 insertions, 0 deletions