From owner-freebsd-questions Mon Feb 8 18:36:34 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA18410 for freebsd-questions-outgoing; Mon, 8 Feb 1999 18:36:34 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from kiwi.pinnacle.co.nz (pinsoft.internet.co.nz [202.37.141.181]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA18401 for ; Mon, 8 Feb 1999 18:36:26 -0800 (PST) (envelope-from jonc@pinnacle.co.nz) Received: from kiwi.pinnacle.co.nz (kiwi.pinnacle.co.nz [202.37.163.2]) by kiwi.pinnacle.co.nz (8.8.8/8.8.8) with SMTP id PAA28695; Tue, 9 Feb 1999 15:35:03 +1300 (NZDT) Date: Tue, 9 Feb 1999 15:35:02 +1300 (NZDT) From: Jonathan Chen To: Masahiro Ariga cc: freebsd-questions@FreeBSD.ORG Subject: Re: Is my BSD wrong installed? In-Reply-To: <000601be52c8$2b4f32a0$064ca8c0@gateway> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 8 Feb 1999, Masahiro Ariga wrote: [fork code removed] > And,Book says it's output should be, > % sample > I am son! > I am father! > % ■ ----■ is cursor mark. > If the book says that, the book is wrong. It is *possible* that the output will look like that but that cannot be guaranteed 'cos you have no idea whether the parent or the child process will grab the output device first. > Here,two questions arise, > (1) why my output is father's line and son's line exchanged ? see above. > (2)On second output,why % mark appears first,and why not returns to normal > prompt. The shell completed before the child process did. Jonathan Chen ------------------------------------------------------------------------ Do not take life too seriously. You will never get out of it alive. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message