summaryrefslogtreecommitdiffstats
path: root/lib/libdisk/disk.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-12-19 16:28:57 +0000
committerbde <bde@FreeBSD.org>1998-12-19 16:28:57 +0000
commit3bb6da1b8bd389ccaa080145eaf3abe256420078 (patch)
tree609bc2a35f7933426ace9c00b3a7762da44ac4f3 /lib/libdisk/disk.c
parent4b4a7fe6816e06375812af04ae8bdf7b92d91bcd (diff)
downloadFreeBSD-src-3bb6da1b8bd389ccaa080145eaf3abe256420078.zip
FreeBSD-src-3bb6da1b8bd389ccaa080145eaf3abe256420078.tar.gz
Wait for channel commands to complete after issuing the commands.
The optimisation of only waiting before issuing new commands is obviously invalid in general and it caused many errors in NIST-PCTS. I think the errors were mostly for characters sent with the wrong parity, etc., after a half complete tcsetattr(). Use microtime() instead of a magic loop count to limit the wait. The wait is a busy-wait :-( and normally takes about 500 usec.
Diffstat (limited to 'lib/libdisk/disk.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud