diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-12-07 23:33:13 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-12-07 23:33:13 +0000 |
commit | 9b61ceb0a67d05640bd5484ea274a240e831c822 (patch) | |
tree | 8477fc47fdba7abc1c4f2b121b12e0bdfb05d27f | |
parent | 363be39d1a0c4eb68167be435b0ae8eccd7773ce (diff) |
From XPG4.2: read(2) can return EIO if the process is a member of
a background process attempting to read from its controlling terminal,
the process is ignoring or blocking the SIGTTIN signal or the process
group is orphaned. Verified against reality...
-rw-r--r-- | lib/libc/sys/read.2 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/sys/read.2 b/lib/libc/sys/read.2 index 8b160a61db1..255ac28f218 100644 --- a/lib/libc/sys/read.2 +++ b/lib/libc/sys/read.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: read.2,v 1.19 2001/05/14 15:11:26 espie Exp $ +.\" $OpenBSD: read.2,v 1.20 2001/12/07 23:33:12 millert Exp $ .\" $NetBSD: read.2,v 1.6 1995/02/27 12:35:47 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -158,7 +158,10 @@ is not a valid file or socket descriptor open for reading. .Fa buf points outside the allocated address space. .It Bq Er EIO -An I/O error occurred while reading from the file system. +An I/O error occurred while reading from the file system, +or the process is a member of a background process attempting to read +from its controlling terminal, the process is ignoring or blocking +the SIGTTIN signal or the process group is orphaned. .It Bq Er EINTR A read from a slow device was interrupted before any data arrived by the delivery of a signal. |