diff options
Diffstat (limited to 'posix')
-rw-r--r-- | posix/test-vfork.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/test-vfork.c b/posix/test-vfork.c index 959dcb3..2abeb5a 100644 --- a/posix/test-vfork.c +++ b/posix/test-vfork.c @@ -29,7 +29,7 @@ main (void) error (1, errno, "vfork"); printf ("After vfork (parent)\n"); if (waitpid (0, &status, 0) != pid - || !WIFEXITED (status) || WEXITSTATUS (NR)) + || !WIFEXITED (status) || WEXITSTATUS (status) != NR) exit (1); exit (0); } |