From 9b61ceb0a67d05640bd5484ea274a240e831c822 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 7 Dec 2001 23:33:13 +0000 Subject: 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... --- lib/libc/sys/read.2 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/libc/sys/read.2') 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. -- cgit v1.2.3