[9095] in Athena Bugs

home help back first fref pref prev next nref lref last post

decmips 7.3P: write(2)

daemon@ATHENA.MIT.EDU (Bruce R. Lewis)
Mon Mar 16 17:35:45 1992

To: bugs@Athena.MIT.EDU
Date: Mon, 16 Mar 92 17:35:30 EST
From: "Bruce R. Lewis" <brlewis@Athena.MIT.EDU>

System name:		alewife
Type and version:	KN01 7.3P
Display type:		PMAX-MFB

What were you trying to do?
	sigblock(sigmask(SIGPIPE));

What's wrong:
	The Ultrix write(2) man page claims:
     The write system call fails and the file pointer will remain unchanged,
     if any of the following is true:
...
     [EPIPE]        An attempt was made to write to a pipe that is not open
                    for reading by any process.

In reality, the write() succeeds, and you get an EPIPE on the next
subsequent read().

What should have happened:
	It would be very nice if write() worked as the man page claims
But if this is not possible, the man page should reflect reality.

Please describe any relevant documentation references:
	write(2)

home help back first fref pref prev next nref lref last post