Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!houxm!hropus!ka From: ka@hropus.UUCP (Kenneth Almquist) Newsgroups: net.unix,net.unix-wizards Subject: Re: Not a typewriter Message-ID: <514@hropus.UUCP> Date: Thu, 19-Jun-86 15:55:04 EDT Article-I.D.: hropus.514 Posted: Thu Jun 19 15:55:04 1986 Date-Received: Sat, 21-Jun-86 07:33:34 EDT References: <1683@homxb.UUCP> <542@codas.ATT.UUCP> <717@axis.UUCP> <564@codas.ATT.UUCP> Organization: Bell Labs, Holmdel, NJ Lines: 9 Xref: watmath net.unix:8251 net.unix-wizards:18487 > If a read or write is interrupted by a signal, it will return 0 or > number of bytes written before the interrupt occured. In this case > errno = 4, and no error code is returned from the system call. I suspect you are misreading the documentation. When a write system call is interrupted, it may either return a short count or return -1. Errno is set to 4 in the latter case. I don't know of any version of UNIX in which read will return zero when interrupted. Kenneth Almquist