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