1 /* vi: set sw=4 ts=4: */
3 * vfork test for uClibc
4 * Copyright (C) 2000-2006 by Erik Andersen <andersen@uclibc.org>
6 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
13 #include <sys/types.h>
27 if ((pid
= vfork()) == 0) {
28 printf("Hi. I'm the child process...\n");
29 execvp(argv
[0], argv
);
33 printf("Hello. I'm the parent process.\n");
36 if (wpid
> 0 && wpid
!= pid
) {
43 printf("Child process exited.\nGoodbye.\n");