]> git.ipfire.org Git - thirdparty/util-linux.git/commit
script: evaluate errno only if read() sets it
authorRuediger Meier <ruediger.meier@ga-group.nl>
Thu, 2 Jul 2015 10:10:17 +0000 (12:10 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 3 Jul 2015 07:53:05 +0000 (09:53 +0200)
commit7dbcd80ee8a8079a39c10fc0070ca2f8faa6f09c
tree5efcdd91ed7226817cda860142b6052fdf94c602
parente831c8767036106b2c0066e0ad85e4f83748857b
script: evaluate errno only if read() sets it

[kzak@redhat.com: - be careful with errno and DBG
                  - add EINTR check
                  (both suggested by Rudi]

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/script.c