Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!yale!moran From: moran@yale-zoo-suned..arpa (William Moran) Newsgroups: comp.unix.wizards Subject: Is this a mistake in the 4.3 documentation? Message-ID: <18552@yale-celray.yale.UUCP> Date: Fri, 6-Nov-87 21:50:07 EST Article-I.D.: yale-cel.18552 Posted: Fri Nov 6 21:50:07 1987 Date-Received: Tue, 10-Nov-87 02:12:48 EST Sender: root@yale.UUCP Reply-To: moran@yale-zoo-suned.UUCP (William Moran) Organization: Yale University Computer Science Dept, New Haven CT Lines: 29 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