2 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
3 * See the copyright notice in the ACK home directory, in the file "Copyright".
5 char rcs_id[] = "$Id: tfork.c,v 2.4 1994/06/24 12:10:21 ceriel Exp $" ;
7 main(argc,argv) char **argv ; {
12 printf("fork returned -1\n") ;
17 /* printf("childno %d\n",child ) ; */
19 waitchild= wait(&status ) ;
20 /* printf("Child %d, status 0x%x\n",waitchild,status) ;*/
21 if ( waitchild== -1 ) {
22 printf("No children\n") ;
25 } while ( waitchild!=child ) ;
26 if ( argc<=1 && status != (8<<8) ) {
27 printf("incorrect status return\n") ;
32 if ( argc>1 ) pause() ;
35 printf("fork/wait ok\n") ;