summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools/clang/lib/Driver
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2012-10-03 13:51:03 +0000
committered <ed@FreeBSD.org>2012-10-03 13:51:03 +0000
commitb7b93e528894509ebb520c28977ed0d37e2f731a (patch)
treef9e512adb0c4505e2b1f716839cfa559d8c36289 /contrib/llvm/tools/clang/lib/Driver
parent5b8c32a59f0fe2ee46ee9cc8b807bbd38d05f570 (diff)
downloadFreeBSD-src-b7b93e528894509ebb520c28977ed0d37e2f731a.zip
FreeBSD-src-b7b93e528894509ebb520c28977ed0d37e2f731a.tar.gz
Fix faulty error code handling in read(2) on TTYs.
When performing a non-blocking read(2), on a TTY while no data is available, we should return EAGAIN. But if there's a modem disconnect, we should return 0. Right now we only return 0 when doing a blocking read, which is wrong. MFC after: 1 month
Diffstat (limited to 'contrib/llvm/tools/clang/lib/Driver')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud