Project

General

Profile

Bug #8476

Non-blocking reads of terminal differ from S10XU8 and documentation

Added by Jeff Woolsey over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2017-07-08
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

The attached test program should count up until a key is pressed. Then it counts down. Another key, counts up again. Ad nauseum. It works in Solaris 10 X86 Update 8. Not in OpenIndiana.

Trussing things shows that the Solaris read() returns -1 and errno==EAGAIN when there's nothing to read, as it should. Illumos just returns 0 in this case. 0 generally means end-of-file--there will be no more data at all.


Files

thing.c (1.06 KB) thing.c test program Jeff Woolsey, 2017-07-08 05:13 PM

Also available in: Atom PDF