9 #define NR 2 /* Exit code of the child. */
17 printf ("Before vfork\n");
22 /* This will clobber the return pc from vfork in the parent on
23 machines where it is stored on the stack, if vfork wasn't
24 implemented correctly, */
29 error (1, errno
, "vfork");
30 printf ("After vfork (parent)\n");
31 if (waitpid (0, &status
, 0) != pid
32 || !WIFEXITED (status
) || WEXITSTATUS (status
) != NR
)