Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!husc6!cmcl2!acf8!berke
From: berke@acf8.UUCP (Wayne Berke)
Newsgroups: comp.arch
Subject: Re: UNIX fork
Message-ID: <890002@acf8.UUCP>
Date: Fri, 27-Nov-87 14:04:00 EST
Article-I.D.: acf8.890002
Posted: Fri Nov 27 14:04:00 1987
Date-Received: Sun, 29-Nov-87 22:46:15 EST
References: <909@mcgill-vision.UUCP>
Organization: New York University
Lines: 18


> main()
> {
>  printf("xxx");
>  if (vfork() == 0)
>   { printf("yyy");
>     exec(....);
>     _exit(1);
>   }
>  printf("zzz\n");
> }
> 
> (note the lack of fflush()es).  This will print xxxyyyzzz\n, for the

It could also print "xxxzzz\nyyy".  You're dealing with a parallel program
here!

Wayne Berke (berke@nyu.edu)