commit bash-20051123 snapshot
[platform/upstream/bash.git] / wifcontinued-test.c
1 #include <sys/types.h>
2 #include <sys/wait.h>
3 #include <unistd.h>
4 #include <errno.h>
5
6 #ifndef errno
7 extern int errno;
8 #endif
9 main()
10 {
11         int     x;
12
13         x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
14         if (x == -1 && errno == ECHILD)
15                 exit (0);
16         else
17                 exit (1);
18 }