diff options
author | jilles <jilles@FreeBSD.org> | 2013-05-03 15:28:31 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2013-05-03 15:28:31 +0000 |
commit | 3f27c6916965a63b42f0a8f1dc9c95cd75faa4fa (patch) | |
tree | 4595e56573a1621805ce3c9493340d4c3a9ce61c /usr.bin/tput | |
parent | cc9f388839c014f29ebe7586e40ad11d1683c173 (diff) | |
download | FreeBSD-src-3f27c6916965a63b42f0a8f1dc9c95cd75faa4fa.zip FreeBSD-src-3f27c6916965a63b42f0a8f1dc9c95cd75faa4fa.tar.gz |
sh: Improve error handling in read builtin:
* If read -t times out, return status as if interrupted by SIGALRM
(formerly 1).
* If a trapped signal interrupts read, return status 128+sig (formerly 1).
* If [EINTR] occurs but there is no trap, retry the read (for example
because of a SIGWINCH in interactive mode).
* If a read error occurs, write an error message and return status 2.
As before, a variable assignment error returns 2 and discards the remaining
data read.
Diffstat (limited to 'usr.bin/tput')
0 files changed, 0 insertions, 0 deletions