[comp.unix.wizards] Is this a mistake in the 4.3 docume

bmelli@ccvaxa.UUCP (11/12/87)

/* Written  8:50 pm  Nov  6, 1987 by moran@yale-zoo-suned..arpa in ccvaxa:comp.unix.wizards */
/* ---------- "Is this a mistake in the 4.3 docume" ---------- */
A friend was looking to understand Interprocess Communications on a
BSD system, so I directed her to the 4.3 docs where I recalled having
seen an intro to IPC. So, I get a call saying: "The $#^%& examples in
the: "An Introductory 4.3BSD IPC Tutorial" don't work! They are in
PS1:7, and either I'm missing something, or they are very poorly
written. The problem seems to be that the author fails to make the
parent wait for its child i.e.

create a socket pair
fork
in the parent, read from the socket and print this, then write to the
	socket
in the child, write to the socket and the read the socket and print the
	result

The problem is that the parent seems to write, and then terminate
killing the child before it has a chance to print its result. Would
someone please tell me whether I am hallucinating. Thanks.
			Bill Moran

			  
			  William L. Moran Jr.
moran@{yale.arpa, cs.yale.edu, yalecs.bitnet}  ...{ihnp4!hsi,decvax}!yale!moran

Tiger! Tiger! burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?
                William Blake
/* End of text from ccvaxa:comp.unix.wizards */